-
Hi. I'm extending an existing application with Windows Hello functionality. My setup is a bit special, it's a JavaFX application that uses JNA to access native platform features on Window and macOS. I digged into Windows Hello, found the So far, so good. A couple of days into my experiment I noticed something weird happening, the Windows Hello prompt, which is triggered by Turns out, after closer study of the docs, the methods I was trying to call use the "request naming pattern" and are not supported (reference: https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-supported-api#methods-that-use-the-request-naming-pattern).
The helpful folks in the C++/WinRT project pointed me to the I couldn't find a single example of real-world use of Also, is there a reason for the interop interface only containing the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
cc @jonwis |
Beta Was this translation helpful? Give feedback.
-
Using some information from the blog post from Raymond (https://devblogs.microsoft.com/oldnewthing/20210805-00/?p=105520) which shows how to call a similar interop API, and some digging in C++/WinRT documentation and sample code I managed to successfully call the interop API (see sample below).
The function lives in a DLL and uses C calling-conventions to be able to access it from Java.
What I'm stuck with now is something hopefully simpler... I'm trying to attach a Completed delegate to the asynchronous operation (like @kennykerr describes in https://kennykerr.ca/2018/03/08/cppwinrt-handling-async-completion/ ). From there I will pass the result to a C function pointer which was passed in as a parameter to the function. Unfortunately, I can not get it to build and I suspect that my |
Beta Was this translation helpful? Give feedback.
Using some information from the blog post from Raymond (https://devblogs.microsoft.com/oldnewthing/20210805-00/?p=105520) which shows how to call a similar interop API, and some digging in C++/WinRT documentation and sample code I managed to successfully call the interop API (see sample below).