GetSubKeys - static function provides recursive access to registry keys with LINQ queries or foreach loops


/ Published in: C#
Save to your folder(s)

This static function allows LINQ or foreach access to registry keys to search for keys, value names and/or values. See example usage in . This was created to find occurrences of driver references ( MyDriver.sys and corresponding OEMnnn.INF) in the registry.

LINQ access to the registry provides for fancy conditions in where-clauses.
Try/catch blocks are used to handle (ignore) access exceptions.

URL: See URLs in comments in function

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.