Prev | Current Page 182 | Next

Matthew MacDonald

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

Then, on the Application tab, click the View
UAC Settings button.
The content of the manifest file is the relatively simple block of XML shown here:

xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
CHAPTER 3 n THE APPLICATION 74
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2">









To change the run level, simply modify the level attribute of the element.
Valid values are asInvoker, requireAdministrator, and highestAvailable.
In some cases, you might want to request administrator privileges in specific scenarios. In the file registration
example, you might choose to request administrator privileges only when the application is run for the
first time and needs to create the registration. This allows you to avoid unnecessary UAC warnings. The easiest
way to implement this pattern is to put the code that requires higher privileges in a separate executable,
which you can then call when necessary.


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