I am developing a custom credential provider and I have to show a progress screen with a cancel button. I have seen in some credentials providers and pgina plugins that a sc
I assume you are looking for IConnectableCredentialProviderCredential::Connect()
.
You need to implement the IConnectableCredentialProviderCredential
interface and put your logic to the Connect()
function. It is called right after Submit button pressed.
The Connect()
function will give you the IQueryContinueWithStatus
interface. In this interface you need to call the QueryContinue()
function periodically, to handle Cancel button or some system events.
For more information look at this article: https://docs.microsoft.com/en-us/windows/win32/api/credentialprovider/nf-credentialprovider-iconnectablecredentialprovidercredential-connect