Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Use a multiexcerptinclude for Subkey

...

Method

RegistryUserKeyExists

ModuleNativeServices
LibraryCore
Action


Excerpt
For each user under HKU, tests whether a given key exists.


ParametersSubkey (string): The registry key to look for.

Multiexcerpt include
MultiExcerptNameSubkeyParameter
PageWithExcerptMethod Notes

Return values

For each user:

Exists (boolean): Whether the key exists or not.

Sid (string): SID of the user.

Username (string): Domain\Username of the aforementioned SID.

Example


Code Block
languageperl
 NativeServices.RegistryUserKeyExists(Subkey:"Control Panel\\Colors");


Platforms
  • Windows
Notes
Multiexcerpt include
MultiExcerptNameLimit8192ForAllUsers
PageWithExcerptMethod Notes

Multiexcerpt include
MultiExcerptNameHKU
PageWithExcerptMethod Notes

Warning
titleWarning

This method may attempt to call AD to translate a SID to a username.


...