title: QTP Impersonation User Context
body: <p>My test automation requirement was following </p>
  
  <ol>
  <li>Open IE as user A from QTP </li>
  <li>Perform some actions &amp; close IE </li>
  <li>Open IE as user B from QTP in the same test</li>
  <li>Perform some actions</li>
  <li>close IR</li>
  </ol>
  
  <p>I am successfully able to implement step1 to step3 using impersonation. <a href="http://www.sqaforums.com/download.php?Number=700264" rel="nofollow">http://www.sqaforums.com/download.php?Number=700264</a> (.net dll approach)</p>
  
  <p>I have verified this impersonation works fine with client server based actions (e.g. data base  call, file access etc), but when I open IE qtp stops recognizing the object on IE (browser is recognised as window). I believe this is due to the reason that QTP hooks are injected into IE with user context A. Is there a way I can overcome this &amp; make qtp recognize IE objects correctly ? </p>
  
  <p>Thanks in advance.</p>