Good afternoon, I need to know if an application written in Delphi is running with administrator privileges or not. Does anyone know of any way to get this information?
Good afternoon, I need to know if an application written in Delphi is running with administrator privileges or not. Does anyone know of any way to get this information?
Windows has a routine that returns if the user has administrator permissions, you can access it through the ShellAPI unit, declaring the external routine in the unit header as follows:
function IsUserAnAdmin(): BOOL; external shell32;