Jump to content
Enpass Discussion Forum

Windows Hello on Windows Desktop

Arthur Rump

Recommended Posts

A long, long time ago (I couldn't even find the topic anymore) I asked if you could support logging in into Enpass using Windows Hello on the Desktop application, so it could also be used in the browser extensions (that's how your system works, right?). You replied that the Windows Hello APIs aren't available on the Windows desktop. I recently came across an article on the Windows Dev Center: UWP APIs callable from a classic desktop app. This article mentions that every UWP API which lists the DualApiPartition attribute in the Attributes section is also available for classic desktop apps. The API that's used for Windows Hello (KeyCredentialManager) actually lists this attribute, so it can also be used in classic desktop apps.

As you might have guessed, I would really love Enpass to support this! It would make Enpass exactly what I want my password manager to be.

Link to comment
Share on other sites

  • 2 months later...

I conducted some further research. To enable access to the CredentialManager API in a WPF application the following snippet should be added to the .csproj file (inside the <Project> node):

    <Reference Include="System.Runtime.WindowsRuntime, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
      <HintPath>$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll</HintPath>
    <Reference Include="Windows">
      <HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\Facade\Windows.WinMD</HintPath>
    <Reference Include="Windows.Foundation.FoundationContract">
      <HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\References\Windows.Foundation.FoundationContract\\Windows.Foundation.FoundationContract.winmd</HintPath>
    <Reference Include="Windows.Foundation.UniversalApiContract">
      <HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\References\Windows.Foundation.UniversalApiContract\\Windows.Foundation.UniversalApiContract.winmd</HintPath>

With these references, I was able to add Windows Hello to a WPF application. Conversion to a Store-app via the Centennial bridge isn't required in this case.

Hope this helps a bit!

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

win32版本的Enpass什么时候能支持Windows Hello功能?
因为我的电脑安装了指纹识别器,我想让Enpass能用上Windows Hello的解锁功能

When does the Win32 version of Enpass support Windows Hello functionality?
Because my computer has a fingerprint recognizer installed, I want Enpass to use the unlock function of Windows Hello
After all, it's annoying to enter passwords every time.

Edited by NanKe
Link to comment
Share on other sites

  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy