Get Documents folder path of current logged on user
<p>I'm developing a C# WinForms application. This application has the ability to update if an update is available on server. It's working fine, but only for an admin user.</p>

<p>The Application will check and apply update with the steps below if user doesn't have admin privileges:</p>

<ul>
<li>When a normal user presses the "Check Update" button, application will check if any update is available on the server.</li>
<li>If an update is available, the application will confirm applying the update with a message box.</li>
<li>If the user presses "Yes" for apply update than it will prompt using the Windows default admin privileges required box.</li>
<li>If the current user has the user name and password of an admin user then they enter it and apply the update.</li>
</ul>

<p><strong>Problem</strong></p>

<p>After an applied update (only for normal user) the application is running as an admin user and I'm trying to get the Documents folder path of current user. It gives me the Documents folder path of the admin user because of application is currently running as the admin user, but I want the Documents folder path of currently logged on user.</p>

<p><strong>Question</strong></p>

<p>How can I get the current logged on user's Documents folder if the application is running as an admin user?</p>

<p>Currently I am get Document folder path with below code.</p>

<pre><code>Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
</code></pre>