Click here to Skip to main content
15,893,722 members
Articles / Programming Languages / C#

LogonUser method and the administrative privilegies

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
11 Aug 2011CPOL 0  
Is it for local Users or in a Windows-Domain?May you just use the administrator for executing some methods?private bool doSomeThingWithAdministrativePrivilegs() { IntPtr token; if (!NativeMethods.LogonUser( , //Administrator or...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available Yes 11-Aug-11 3:15 Available diialer
1 No 11-Aug-11 3:11 Available diialer

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions