Skip to content

Commit

Permalink
Update README to use utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ritazh committed Nov 13, 2015
1 parent 27082e5 commit 8dc0acf
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 8dc0acf

Please sign in to comment.