Windows ML: ABI Execution Provider enumeration sample - #544
Merged
Conversation
Add Windows ML sample demonstrating execution provider discovery and management using direct ABI/COM interfaces with Microsoft.WindowsAppSDK.ML package. Key features: - Automatic ABI header generation via Microsoft.Windows.AbiWinRT - Complete provider lifecycle management (discovery → preparation → registration) - Event-driven async operations with progress reporting - Modular architecture with reusable components Technical implementation: - Direct COM interface programming with Microsoft::WRL - HANDLE-based async synchronization patterns - Self-contained Windows App SDK deployment, but nothing here precludes framework-based deployments. - Filtered metadata processing for Windows ML APIs Components added: - AbiUtils.h: HSTRING utilities and common helpers - AsyncHandlers: Progress and completion event handlers - ExecutionProvider: IExecutionProvider wrapper with state management - ExecutionProviderCatalog: Provider discovery and enumeration - ConsoleUI: Interactive user interface utilities - Application: Lifecycle management and orchestration This sample provides developers with production-ready patterns for direct ABI access to Windows ML capabilities, complementing existing C++/WinRT samples with a lower-level programming approach.
adrastogi
reviewed
Oct 7, 2025
adrastogi
reviewed
Oct 7, 2025
…ecutionProviderCatalog
Nick Eubanks (nieubank)
added a commit
that referenced
this pull request
Oct 8, 2025
* Windows ML: ABI Execution Provider enumeration sample Add Windows ML sample demonstrating execution provider discovery and management using direct ABI/COM interfaces with Microsoft.WindowsAppSDK.ML package. Key features: - Automatic ABI header generation via Microsoft.Windows.AbiWinRT - Complete provider lifecycle management (discovery → preparation → registration) - Event-driven async operations with progress reporting - Modular architecture with reusable components Technical implementation: - Direct COM interface programming with Microsoft::WRL - HANDLE-based async synchronization patterns - Self-contained Windows App SDK deployment, but nothing here precludes framework-based deployments. - Filtered metadata processing for Windows ML APIs Components added: - AbiUtils.h: HSTRING utilities and common helpers - AsyncHandlers: Progress and completion event handlers - ExecutionProvider: IExecutionProvider wrapper with state management - ExecutionProviderCatalog: Provider discovery and enumeration - ConsoleUI: Interactive user interface utilities - Application: Lifecycle management and orchestration This sample provides developers with production-ready patterns for direct ABI access to Windows ML capabilities, complementing existing C++/WinRT samples with a lower-level programming approach. * Update Nuget package directory path and enhance error reporting in ExecutionProviderCatalog
Nick Eubanks (nieubank)
added a commit
that referenced
this pull request
Oct 8, 2025
* Windows ML: ABI Execution Provider enumeration sample Add Windows ML sample demonstrating execution provider discovery and management using direct ABI/COM interfaces with Microsoft.WindowsAppSDK.ML package. Key features: - Automatic ABI header generation via Microsoft.Windows.AbiWinRT - Complete provider lifecycle management (discovery → preparation → registration) - Event-driven async operations with progress reporting - Modular architecture with reusable components Technical implementation: - Direct COM interface programming with Microsoft::WRL - HANDLE-based async synchronization patterns - Self-contained Windows App SDK deployment, but nothing here precludes framework-based deployments. - Filtered metadata processing for Windows ML APIs Components added: - AbiUtils.h: HSTRING utilities and common helpers - AsyncHandlers: Progress and completion event handlers - ExecutionProvider: IExecutionProvider wrapper with state management - ExecutionProviderCatalog: Provider discovery and enumeration - ConsoleUI: Interactive user interface utilities - Application: Lifecycle management and orchestration This sample provides developers with production-ready patterns for direct ABI access to Windows ML capabilities, complementing existing C++/WinRT samples with a lower-level programming approach. * Update Nuget package directory path and enhance error reporting in ExecutionProviderCatalog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add Windows ML sample demonstrating execution provider discovery and management using direct ABI/COM interfaces with Microsoft.WindowsAppSDK.ML package.
Key features:
Technical implementation:
Components added:
This sample provides developers with
production-ready patterns for direct ABI access to Windows ML capabilities, complementing existing C++/WinRT samples with a lower-level programming approach.
Target Release
1.8.1
Checklist
Note that /azp run currently isn't working for this repo.