擅长:python、mysql、java
<p>这是一篇关于<a href="http://blogs.msdn.com/b/junfeng/archive/2006/10/18/programmatically-determine-if-an-application-requires-elevation-in-windows-vista.aspx" rel="nofollow noreferrer">how to determine if an application requires elevated privileges</a>的短文。</p>
<p>您可以使用pywin32或ctypes执行CreateProcess()调用。</p>
<p>我建议使用ctypes,因为它现在是python中的标准,这里有一个<a href="http://svn.smedbergs.us/python-processes/trunk/winprocess.py" rel="nofollow noreferrer">good example of using CreateProcess with ctypes</a>。</p>