title: Building a custom credential provider for Windows 7
body: <p>After looking through the code for building custom credential providers for Windows 7, I managed to get my own tile to show up on the logon screen, and can logon as the desired user. However, I am trying to implement a system where an event (a Bluetooth device in range) triggers a logon/unlock, without needing to click on the tile.</p>
  
  <p>I can set it to fill in the password automatically (maybe I will implement pulling the password <em>from</em> the device), but either way, I must click the tile first. If it is locked, I need to click "Other Credentials" before that, too.</p>
  
  <p>How would I go about implementing the logon credential provider <em>without</em> displaying a tile on the logon screen? It would be nice if I could keep the existing password option focused, and bypass it the moment the device comes in range.</p>
  
  <p><strong>EDIT</strong>: I made some progress, but I still think I need to do this without a tile. If I set the <code>*pbAutoLogon</code> parameter to <code>true</code>, and fill in the username and password before that, then the following behavior occurs:</p>
  
  <ul>
  <li><p>If the default credential is selected (lock/unlock), then I need to click on "other credentials". If I log off, both credentials are displayed by default.</p></li>
  <li><p>If both credentials are shown, and my provider is enabled <em>after</em> that, then the logon is automatic.</p></li>
  <li><p>If my provider is enabled first, then "other credentials" is selected, I still need to click on my provider, after which logon is automatic</p></li>
  </ul>