Prev | Current Page 181 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"


If the user is not a member of the Administrators group, a dialog box appears where the user
can enter the user name and password of an account that does have administrator privileges.
??? highestAvailable. The application gets the highest privileges according to its group membership. For
example, if the current user is a member of the Administrators group, the application gets administrator
privileges (once the user accepts the UAC confirmation). The advantage of this run level is that the
application will still run if administrator privileges aren??™t available, unlike requireAdministrator.
Ordinarily, your application runs with the asInvoker run level. To request administrator privileges, you
must right-click the application EXE file and choose Run As Administrator when you start it. To get administrator
privileges when testing your application Visual Studio, you must right-click the Visual Studio shortcut
and choose Run As Administrator.
If your application needs administrator privileges, you can choose to require them with the
requireAdministrator run level or request them with the highestAvailable run level. Either way, you need to
create a manifest??”a file with a block of XML that will be embedded in your compiled assembly. To edit the
manifest for your application, double-click the My Project node.


Pages:
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193