Declare Function IsNTAdmin Lib "advpack.dll" (ByVal dwReserved As Long, ByRef lpdwReserved As Long) As Long
' Имеет ли программа права Администратора Dim bIsAdmin As Boolean bIsAdmin = CBool(IsNTAdmin(ByVal 0&, ByVal 0&)) Print bIsAdmin