Try these:
http://www.codeproject.com/csharp/zetaimpersonator.asp
http://www.codeproject.com/csharp/cpimpersonation1.asp
http://msdn2.microsoft.com/en-us/library/ms731090.aspx
you'll at least see the concepts of impersonation.
Note, impersonate in a asp.net application is easy, but not so with a
winforms, console or service application.
> My service was able to access the network drive after I unchecked "Local
> System account" and specified my network account through Administrative
> Tools/Services, but is there a way to let the user specify the account
> through the application?