This problem occurs with the server:
Many users who use the Windows Server 2003 system will receive the following error:
Event Type: Error
Event Source: Application Popup
Event Type: None
Event id:333
Date: 2007-8-11
Event: 8:48:03
Users: N/A
Computer: Lz_yq
Describe:
An unrecoverable error occurred with the I/O operation caused by the registry. The registry will not be able to read, write, or refresh one o
Recently, when I was working on a project, I used some functions that operate the Registry. Now I want to record these functions for future use.
1. Open the registry key long regopenkeyex (hkey, // handle to open key primary key lpctstr lpsubkey, // subkey name subkey DWORD uloptions, // reserved. Must be 0 regsam samdesired, // security access mask read/write id
C # modifies the registry and needs to reference the Microsoft.Win32 namespaceUsing Microsoft.Win32; Declaration//quote RegistryKey REG; reg = Registry.classesroot;The following four cases from ' read ' ' write ' ' delete ' ' judgment ' to implement simple operation on the registry1. Read the value of the registry with the specified nameprivate string Getregistdata (string
Because Registry Editor Regedit.exe is actually a dual-Habitat program that can run either in DOS or under WINDOWS95/98. Many users may already know how to use the Regedit method under Windows, so to master the DOS mode of the registry programming, first of all to understand how to use the Registry Editor in DOS.
Type the regedit command at a DOS prompt, and a he
Document directory
Predefined registry key
CRegKey class and main usage and Function Description
Description
The Registry is an important part of Windows. It records a large amount of information about computer software and hardware. The value in the registry is identified by its name. The Value
Six key roots in the registry, all data is organized in a tree structure with keys and sub-keys, very similar to the directory structure. Each key contains a specific set of information, and the key names for each key are related to the information it contains. If the key contains a subkey, the left side of the folder that represents the key in the Registry Editor window will have a "+" sign to indicate tha
. However, you can add information to the registry project, some malicious websites use this to succeed: they change the key value under the string value Window Title to their website name or more advertisement information, to change the title bar of the Browser IE.Specifically, the modified registry project is:HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Internet
The level-2 directory contains five pre-defined primary keys: hkey_classes_root, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, and hkey_current_config.
Next we will explain the functions of these five classes respectively.
Hkey_classes_root this primary key contains the file extension and applicationProgramWindow shell and OLE are used to store registry information. The subkeys under the primary key determine how to display the files and th
!= null) { // Obtain all retrieved valuesString[] names = historykey.GetValueNames(); foreach (String str in names) { listBox1.Items.Add(historykey.GetValue(str).ToString()); } }
Where,RegistryKey class(MSDN) indicates the top-level node in the registry. This class is the Registry encapsulation.Registry class(MSDN) provides the RegistryKey object that represents the root item in the Windows
written or deleted operation, the situation will cause the system crashes! If you really want to do this, please make a backup copy of the registry.
Application examples
1, reading machine "Computer name"
' Readcomputername.vbsDim ReadcomputernameSet readcomputername=wscript.createobject ("Wscript.Shell")Dim Computername,regpathRegpath= "Hklm\system\currentcontrolset\control\computername\computername\compu
value, you must add a Boolean parameter after the method and set it to true, which indicates that the key value can be written or modified; if you only want to read the key value, you can not add it. In this case, you can disable it. You can no longer write the value to it. (Of course, you can add it to true )!
Readers also mentioned the problem of reading and writing the default key value. Setting the key name blank in the setting and reading method
String window title to their website name or more advertising information, So as to change the viewer IE title bar.
The registry entries that are specifically changed are:
Hkey_local_machinesoftwaremicrosoftinternet Explorermainwindow Title
Hkey_current_usersoftwaremicrosoftinternet Explorermainwindow Title
Solution:
① after Windows starts, click the "start" → "Run" menu item, type regedit in the "Ope
-0080c7b2d682}
Extern "C" const IID iid_ix =
{0x32bb8320, 0xb41b, 0x11cf,
{0xa6, 0xbb, 0x0, 0x80, 0xc7, 0xb2, 0xd6, 0x82 }};
Comparison of guid
An = Operator is defined in objbase. H. You can also use the isequalguid, isequaliid, and isequalclsid.
3. Windows Registry
Registry Organization
A registry is a layered structure composed of many elements. Each elemen
Properties of hardware components, performance records, and other underlying system status information, and other data.Of course, the registry database cannot be opened with other editing software. It is stored in the system in the Windows folder. dat and user. in the DAT two hidden files, you can only use the "run" command line Regedit in Windows to edit them. Of course, you can also use the editing software to create them. reg.
in Windows XP. Open notepad and enter the following code: WindowsRegistryEditorVersion5.00 [HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ System] DisableRegistryTools = dword: 00000000
Save the text file as "js. reg" (the file name is random, but the suffix must be "reg"), and then double-click the file to unlock the registry.
However, the preceding key value does not exi
1. Copy one sentence Code Registry auto location
To avoid the hassle of localizing the registry branch, here's a way to automatically reach the target item of the registry by one click.
Create a new file with Notepad, and enter the code as shown in the diagram (for increased efficiency, you can download the copy code directly: http://pan.baidu.com/s/1nt2vjXf).
1. Pull the Docker registry imageDocker Pull Registry2. Create a certificate store directoryMkdir-p/home/registry3, Generate CA CertificateEdit your/etc/ssl/openssl.cnf on the logstash host-add subjectaltname = ip:10.1.10.1 inch [V3_ca] section.In general, the certificate only supports domain name access, to enable it to support IP address access, you need to modify the configuration file OPENSSL.CNF.In the
Network | Registry We can think of the registry as a huge database, it collects all the hardware and software configuration and status information and user-related settings information, to the normal operation of the system plays a vital role. If we are Internet cafes or public computer room system maintenance, we should make full use of the registry in the netwo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.