prompting_20for_20admin_20rights
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
prompting_20for_20admin_20rights [2018/03/31 13:19] – external edit 127.0.0.1 | prompting_20for_20admin_20rights [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Prompting for admin rights===== | =====Prompting for admin rights===== | ||
- | //by Richard Russell, December 2012//\\ \\ If your program needs to perform an action that requires Administrator Privileges (for example it needs to write files to one of the ' | + | //by Richard Russell, December 2012//\\ \\ If your program needs to perform an action that requires Administrator Privileges (for example it needs to write files to one of the ' |
- | | + | **1.** Copy this file into the directory containing your program' |
- | | + | |
- | * 1 KB | + | {{manifest_admin.res|manifest_admin.res}} |
- | \\ \\ **2.** Add these compiler directives to your program:\\ | + | |
+ | **2.** Add these compiler directives to your program: | ||
+ | |||
+ | <code bb4w> | ||
REM!Resource @dir$+" | REM!Resource @dir$+" | ||
REM!Window | REM!Window | ||
+ | </ | ||
+ | |||
The purpose of the **REM!Window** directive is to disable the 'Use Windows XP Visual Styles' | The purpose of the **REM!Window** directive is to disable the 'Use Windows XP Visual Styles' |
prompting_20for_20admin_20rights.1522502375.txt.gz · Last modified: 2024/01/05 00:16 (external edit)