title: submit logon in credential provider
body: <p>I have read this <a href="https://syfuhs.net/2017/10/15/creating-custom-windows-credential-providers-in-net" rel="nofollow noreferrer">article</a> to develop my custom credential provider.</p>
  
  <p>Now I want to test code attached with the article in <a href="https://github.com/SteveSyfuhs/CredProvider.NET" rel="nofollow noreferrer">GitHub</a>.</p>
  
  <ul>
  <li>I run 
  
  <blockquote>
    <p>install.reg file.</p>
  </blockquote></li>
  <li><p>run the code and show GUI in login screen by change scenario</p>
  
  <pre><code> private static bool IsSupportedScenario(_CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus)
  
       {
  
         switch (cpus)
          {
  
           case _CREDENTIAL_PROVIDER_USAGE_SCENARIO.CPUS_CREDUI:
              return true;
  
          case _CREDENTIAL_PROVIDER_USAGE_SCENARIO.CPUS_UNLOCK_WORKSTATION:
              return true;
  
          case _CREDENTIAL_PROVIDER_USAGE_SCENARIO.CPUS_LOGON:
              return true;
          case _CREDENTIAL_PROVIDER_USAGE_SCENARIO.CPUS_CHANGE_PASSWORD:
          case _CREDENTIAL_PROVIDER_USAGE_SCENARIO.CPUS_PLAP:
          case _CREDENTIAL_PROVIDER_USAGE_SCENARIO.CPUS_INVALID:
          default:
              return false;
      }
  }
  </code></pre></li>
  </ul>
  
  <p>the question is how can I submit an inserted username/password and log in successfully if correct </p>