How to detect if the current user is logged in administrator?
Answer / Vishal Deep
To determine if the current user has administrator privileges in Delphi, you can use the IsAdminUser function from the System.Security.Principal namespace. You'll need to add a reference to System.Security.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to Remove drives listed in a TDriveComboBox ?
How to Load a TListView component that contains SubItems?
How to Determine if you have Delphi v3.02 installed?
How to Switch between different data sources?
How to use sets in code, such as adding to TDBGrid.Options, at run time?
How to get the version information for a file?
What is Delphi?
How to Resize StringGrid Columns ?
what are the Current MSACCESS driver limitations ?
Define PRIMARYLANGID(), SUBLANGID(), and MAKELANGID() macros?
'Trying to append data to a non-partial dataset' . what does this error indicates?
What is the function of inheritance in delphi?