System.Win.Registry.ERegistryException

From Appmethod Libraries
Jump to: navigation, search

System.SysUtils.ExceptionSystem.TObjectERegistryException

Object Pascal

ERegistryException = class(Exception);

C++

class PASCALIMPLEMENTATION ERegistryException : public System::Sysutils::Exception

Properties

Type Visibility Source Unit Parent
class public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry System.Win.Registry

Description

ERegistryException is the exception class for registry errors.

ERegistryException is raised when an application cannot:

  • Create a new key in the registry.
  • Read a data value associated with a key.
  • Read a binary data value associated with a key into a local buffer.
  • Write a data value to a key.

Key creation fails when an application attempts to create a subkey under a key for which it does not have KEY_CREATE_SUB_KEY security access.

Reading a data value associated with a key fails when an application does not have KEY_READ security access, or when the application attempts to read the wrong kind of data from a key (for example, attempting to read string data from an integer data value).

Reading a binary data value into a local buffer fails when an application does not allocate a buffer large enough for the data.

Writing a data value to a key fails because an application does not have KEY_WRITE security access for the current key.

See Also