积极答复者
如何用代码检测Windows7中的程序是否以管理员身份运行?

问题
答案
-
兼容性设置没有API。如果你需要的是用代码监测当前程序是否以管理员身份运行,可以参考http://www.codeproject.com/KB/vista-security/UACSelfElevation.aspx
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 dcba63 2011年5月20日 7:23
全部回复
-
兼容性设置没有API。如果你需要的是用代码监测当前程序是否以管理员身份运行,可以参考http://www.codeproject.com/KB/vista-security/UACSelfElevation.aspx
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 dcba63 2011年5月20日 7:23