Skip to content

Commit

Permalink
Merge pull request #30 from ritazh/fix_readme
Browse files Browse the repository at this point in the history
Update README to use utils
  • Loading branch information
ritazh committed Nov 13, 2015
2 parents 27082e5 + 8dc0acf commit 30d338e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The return value depends on the type of the key (REG_SZ for example will give yo

## Launching a Process as an Admin

To launch a process as an Administrator, you can call the `uac.elevate` API, which will launch a process as an Administrator causing the UAC (User Account Control) elevation prompt to appear if required. This is similar to the Windows Explorer command "Run as administrator". Pass in `FILEPATH` to the process you want to elevate. Pass in any`PARAMETERS` to run with the process. Since this is an asynchronous call, pass in a callback to handle user's selection.
To launch a process as an Administrator, you can call the `utils.elevate` API, which will launch a process as an Administrator causing the UAC (User Account Control) elevation prompt to appear if required. This is similar to the Windows Explorer command "Run as administrator". Pass in `FILEPATH` to the process you want to elevate. Pass in any`PARAMETERS` to run with the process. Since this is an asynchronous call, pass in a callback to handle user's selection.

```js
var utils = require('windows-registry').utils;
Expand Down

0 comments on commit 30d338e

Please sign in to comment.