Skip to content

enumerate registry values - #9

Merged
shiftkey merged 24 commits into
masterfrom
enumerate-registry-values
Dec 1, 2017
Merged

shiftkey merged 24 commits into
masterfrom
enumerate-registry-values

Conversation

@shiftkey

@shiftkey shiftkey commented Dec 1, 2017 •

Copy link
Copy Markdown
Member

Fixes #1

  • get some code working between Node and the underlying OS
  • write some example code into the README
  • cleanup and simplify code - we don't need everything that's being assigned
  • flesh out some other examples, using known and boring registry entries

@shiftkey

shiftkey commented Dec 1, 2017

Copy link
Copy Markdown
Member Author

A quick comparison of the speed-up between our old way of spawning reg.exe and this new way of invoking native code directly:

$ yarn benchmark
yarn run v1.3.2
$ ts-node benchmarks/reg.ts
reg.exe x 60.46 ops/sec ±1.91% (66 runs sampled)
registry.js x 1,187 ops/sec ±7.97% (84 runs sampled)
Done in 15.34s.

@shiftkey
shiftkey merged commit 3699f98 into master Dec 1, 2017
@shiftkey
shiftkey deleted the enumerate-registry-values branch December 1, 2017 06:27
Comment thread src/main.cc

if (retCode != ERROR_SUCCESS) {
char* errorMessage = NULL;
sprintf(errorMessage, "RegQueryInfoKey failed - exit code: '%d'", retCode);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread src/main.cc

if (openKey != ERROR_SUCCESS) {
char* errorMessage = NULL;
sprintf(errorMessage, "RegOpenKeyEx failed - exit code: '%d'", openKey);

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants