Re: Fdm1 #elad #fdm-s2


 

Hi Neil,
in fact i never found any reference with the Elad documentation.
Anyway the Elad SW? does not open without admin privileges.

The Admin is you or else if included with the permission assignments.
Useful for NetWork systems.

A program that is requesting privileges would check the permission similar to this code:
Try
'check if program opend with admin priv
Dim identity = WindowsIdentity.GetCurrent()
Dim principal = New WindowsPrincipal(identity)
Dim isElevated As Boolean = principal.IsInRole(WindowsBuiltInRole.Administrator)
If isElevated Then
'Msg
Else
FlexibleMessageBox.Show("Program must be opened with Admin privileges.", _
AppTitle, MessageBoxButtons.OK, MessageBoxIcon.Hand)
End

End If
Catch ex As Exception
End Try

Raimund
.

Join EladSDR@groups.io to automatically receive all group messages.