microsoft / Windows-classic-samples

This repo contains samples that demonstrate the API used in Windows classic desktop applications.
Other
5.1k stars 3.23k forks source link

SampleHardwareEventCredentialProvider is not to free resources #246

Open nikishyn opened 2 years ago

nikishyn commented 2 years ago

I am exploring windows credential providers. So, I have started with this samples SampleHardwareEventCredentialProvider from https://github.com/Microsoft/Windows-classic-samples/tree/master/Samples/Win7Samples/security/credentialproviders solution.

I added some logs to constructors and destructors for the following classes: CSampleCredential, CommandWindow, CSampleProvider, MessageCredential.

Seems, that destructors are not called after login.

Build environment Windows 10 - 64 bit Visual Studio 2019