title: Is impersonation in Win32 per thread?
body: <p>Is calling <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa375497.aspx" rel="nofollow"><code>ImpersonateSecurityContext</code></a> on the server impersonating the client on the calling thread or for the entire process. The <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa375497.aspx" rel="nofollow">documentation</a> is a bit vague on the matter as it states that <em>"The function creates an impersonation token and allows the thread or process to run with the impersonation context"</em>.</p>
  
  <p>I assume that impersonation is only for the calling thread, anything else would be strange, but I want to be sure.</p>