How to detect if the current user is logged in administrator?



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

Post New Answer

More Delphi Interview Questions

How to Remove drives listed in a TDriveComboBox ?

0 Answers  


How to Load a TListView component that contains SubItems?

1 Answers  


How to Determine if you have Delphi v3.02 installed?

1 Answers  


How to Switch between different data sources?

1 Answers   Wipro,


How to use sets in code, such as adding to TDBGrid.Options, at run time?

1 Answers  


How to get the version information for a file?

1 Answers  


What is Delphi?

1 Answers  


How to Resize StringGrid Columns ?

1 Answers  


what are the Current MSACCESS driver limitations ?

1 Answers  


Define PRIMARYLANGID(), SUBLANGID(), and MAKELANGID() macros?

1 Answers  


'Trying to append data to a non-partial dataset' . what does this error indicates?

1 Answers  


What is the function of inheritance in delphi?

1 Answers  


Categories