判断当前进程是否以管理员程序运行的方法
摘要:通用方法,使用win32API,以下是vb6代码:Option ExplicitPrivate Const SECURITY_BUILTIN_DOMAIN_RID As Long = &H20Private Const DOMAIN_ALIAS_RID_ADMINS As Long = &H220Private Declare Function AllocateAndInitializeSid Lib "advapi32.dll" (pIdentifierAuthority As Any, ByVal nSubAuthorityCount As Byte,
阅读全文
posted @ 2013-09-30 10:19