Cbregistry Configuration
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.CBRegistry Configuration Settings
FilterOwnRequests:
Whether the class's system driver should filter requests made by the application itself.This setting specifies whether requests made by the application itself should be filtered through the class's system driver (assuming that they match one of the rules present at the time).
When this setting is disabled (default), and the application performs some operation that would match an existing rule, the driver will explicitly ignore it.
This setting should normally remain disabled (especially in production) in order to reduce the possibility of system deadlocks occurring. That said, there are certain situations that require it to be enabled, such as for testing purposes (so that event handlers can be tested with single-process tests). | |
ForceAdminRightsForDefaultRules:
Specifies whether default rules can be added or deleted only by administrators.
This setting specifies whether the access check must be performed when an attempt is made to add or delete a default rule.
By default, the setting is enabled and rules may be added and deleted only by administrators. However, if an application uses default rules not for security-related purposes, and the risk of a limited user trying to add or remove the rules is low, such application may disable the setting. Administrative rights are required to change this configuration setting after Initialize is called. If the user account of the process that calls Config doesn't have such rights, the call will fail with an ERROR_PRIVILEGE_NOT_HELD (0x0522) error. | |
LoggingEnabled:
Whether extended logging is enabled.This setting specifies whether extended logging is enabled for this class; it is disabled by default.
Please refer to the Error Reporting and Handling topic for more information.
This setting's value is stored in the registry and is persistent; it requires administrative rights to be changed. | |
MaxWorkerThreadCount:
The maximum number of worker threads to use to fire events.This setting specifies the maximum number of worker threads the class may create to fire events on when the SerializeEvents property is disabled. (If SerializeEvents is enabled, this setting does not apply.)
By default, this setting is set to 0, and the driver automatically chooses an optimal number of threads using this equation: 4 * number_of_processors. | |
MinWorkerThreadCount:
The minimum number of worker threads to use to fire events.This setting specifies the minimum number of worker threads the class should create to fire events on when the SerializeEvents property is disabled. (If SerializeEvents is enabled, this setting does not apply.)
By default, this setting is set to 0, and the driver automatically chooses an optimal number of threads using this equation: max(number_of_processors, 4). If this setting's value exceeds the MaxWorkerThreadCount value, the latter is used instead. | |
ResolveNtNameToWin32Name:
Whether key names in NT native format are translated to common Win32 format.This setting specifies whether NT native names (e.g., \Registry\Machine\...) should be translated to common Win32 format (e.g., HKY_LOCAL_MACHINE\...).
Please note that such translation is not always possible.
This setting is disabled by default. Note: This setting cannot be changed when Active is true, and cannot be changed within events. | |
WorkerInitialStackSize:
The initial stack size to create worker threads with.This setting specifies the initial size of the stack each worker thread is created with. The system rounds this value to the nearest page.
By default, this setting is set to 0, and the driver uses a default stack size (currently, 1 MB). Note: This setting cannot be changed when Active is true, and cannot be changed within events. |
Base Configuration Settings
BuildInfo: Information about the product's build.When queried, this setting will return a string containing information about the product's build. | |
LicenseInfo:
Information about the current license.When queried, this setting will return a string containing information about the license this instance of a class is using. It will return the following information:
|