windows-Credential-Provider-library icon indicating copy to clipboard operation
windows-Credential-Provider-library copied to clipboard

Display message box after authentication .

Open ghost opened this issue 3 years ago • 0 comments

Thank you so much for creating this wonderful project. Current we are able to open the message box before authenticating the user. Sample code: `HRESULT CSampleCredential::GetSerialization( __out CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE* pcpgsr, __out CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION* pcpcs, __deref_out_opt PWSTR* ppwszOptionalStatusText, __out CREDENTIAL_PROVIDER_STATUS_ICON* pcpsiOptionalStatusIcon ) { HRESULT hr = E_UNEXPECTED; count++; if (_pWrappedCredential != NULL) { hr = _pWrappedCredential->GetSerialization(pcpgsr, pcpcs, ppwszOptionalStatusText, pcpsiOptionalStatusIcon); /**tmpcpgsr = *pcpgsr; *tmpcpcs = tmpcpcs;/

    HWND hwndOwner2 = nullptr;

    if (_pCredProvCredentialEvents)
    {
        _pCredProvCredentialEvents->OnCreatingWindow(&hwndOwner2);
    }

    if (true) {
        int i1;
        //// Pop a messagebox indicating the click.
        i1 = MessageBox(hwndOwner2, L"Click to proceed", L"Action", 1L);
        PrintLn("Ironcloud Dvi messagebox output:(%d)", i1);

        if (i1 == 1) {

        }
        else if (i1 == 2) {
            hr = -1;
        }
        else {
            hr = -1;
        }
    }`

Is it possible to display the message box after authenticating the user, but before displaying the desktop?

Regards, Rajat KP

ghost avatar Nov 13 '20 06:11 ghost