<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[Guest Blog] User Account Control for Developers</title><link>http://blogs.msdn.com/s4cd/archive/2007/04/16/guest-blog-user-account-control-for-developers.aspx</link><description>Kenny Kerr is our guest blogger this month. Here is his bio: Kenny Kerr is a founding employee and Chief Software Architect at PlateSpin Ltd. where he designs and builds new products and helps drive the technical direction for PlateSpin’s market-leading</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: [Guest Blog] User Account Control for Developers</title><link>http://blogs.msdn.com/s4cd/archive/2007/04/16/guest-blog-user-account-control-for-developers.aspx#3240653</link><pubDate>Tue, 12 Jun 2007 08:35:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3240653</guid><dc:creator>KarlZhou</dc:creator><description>&lt;p&gt;&amp;gt;&amp;quot;if all you need is to determine whether or not you are currently elevated you can simply call the IsUserAnAdmin function&amp;quot;.&lt;/p&gt;
&lt;p&gt;IsUserAnAdmin is not appropriate for judgement of elevation. The problem comes when you elevate a standard user with a standard user credential: the token associated is elevated but IsUserAnAdmin returns a false result.&lt;/p&gt;
&lt;p&gt;As you have pointed out, the accurate way is to use GetTokenInformation and get value of TOKEN_ELEVATION.TokenIsElevated.&lt;/p&gt;
&lt;p&gt;Karl&lt;/p&gt;
</description></item></channel></rss>