Windows registry includes the program configuration,
Office 2007 Download, machine hardware configuration, Win32 applications, and end users of other configuration information. Registry according to the system info is divided into six root keys (RootKey), which every possess a root key sub-key and essential parts of your tree, every sub-key jobs on behalf of the certain configuration. manage utilizing C + + Builer registry essential would be to fully grasp the TRegistry course. In C + + Builder's VCL course library gives TRegistry class produced through the application instance of this course, we are able to attain the manage from the registry. In TRegistry class, the concentrate should be to master the subsequent concerns: one. TRegistry generated class declaration we can not use the immediate technique to generate TRegistry instance, which VC + + using HKEY directly produce instances of various ways. Need to be produced TRegistry new instance of the course keyword, after which pass a pointer to the popularity on the variables. Specific operation is as follows: TRegistry * curReg = new TRegistry; / / curReg identify is really a pointer of type TRegistry declaration to adopt this method, curReg the RootKey attribute factors to the HKEY_CURRENT_USER root crucial, the default action is carried out for HKEY_CURRENT_USER. 2. Easy methods to open and near the major key TRegistry class supplies two member function to open a main crucial: OpenKey () and OpenKeyReadOnly () perform. Which, OpenKey perform also offers the purpose to make the primary important. OpenKey () has two parameters, KeyName and canCreate. canCreate is a bool sort parameter, when it's set to accurate, when the present does not exist underneath the root crucial variable of type AnsiString KeyName pointed out the primary essential, you produce the main key; otherwise noted inside the main key in to the KeyName. If canCreate set to ########,
Microsoft Office 2007 Enterprise, but underneath the current root key KeyName that there isn't any main crucial, the operate returns false. OpenKeyReadOnly () purpose, the perform is to open a read-only primary crucial,
Windows 7 Home Premium, if your parameter value is NULL, then the stage RootKey specified key. KeyName Parameters expressed in two approaches: absolute and relative route, mentioned path, stated. Expressed through the absolute path, the string value must be right after use inside the registry shall promptly simply call CloseKey () member function Near the registry,
Windows 7 Download, and call the delete strategy will use the new release with the software memory area. 3. Erupted about the existing essential worth for that main important we are able to use GetKeyNames () member operate to obtain the existing main crucial names of all sub-keys, with GetKeyInfo get far more comprehensive info. should be mentioned that even though GetKeyNames () directions into the void __fastcall GetKeyNames (Courses:: TStrings * Strings), that's,
Office 2010 Professional Plus, its parameter sort TString, but we are able to not at the outset TString instance of the course, and then utilised it like a parameter GetKeyNames (). This was primarily due TStrings class has an abstract composition. Our remedy would be to use a derived course TStringList TStrings course declare an instance for the TStrings as an alternative, and as a parameter for GetKeyNames () perform. in acquiring the title with the subkey, we are able to use to additional determine the comprehensive info about purpose. For instance, we can use GetValueNames () with Read () and Create () to acquire the worth on the primary important for far more information. As an example: we have to read , accurate); AnsiString ValueInfo = CurReg-> ReadString (