Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display message box after authentication . #9

Open
ghost opened this issue Nov 13, 2020 · 0 comments
Open

Display message box after authentication . #9

ghost opened this issue Nov 13, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 13, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants