Practical registration form

xiaoxiao2021-03-06  14

1, CREATEKEY (LPCTSTR LPSUBKKKEY)

Create a specified key.

CREATEKEY ("staff / 0");

2, Open (LPCTSTR LPSUBKEY)

Open the specified key.

Open ("Software // Staff / 0");

3, read (lpctstr lpvaluename, cstring * lpval);

Read (LPCTSTR LPVALUENAME, DWORD * PDWVAL);

Read (LPCTSTR LPVALUENAME, INT * PNVAL);

Read the specified key value.

4, Write (LPCTSTR LPSUBKEY, LPCTSTR LPVAL);

Write (LPCTSTR LPSUBKEY, DWORD DWVAL);

Write (LPCTSTR LPSUBKEY, INT NVAL);

Write the content to the specified key.

5, DeleteKey (HKEY HKEY, LPCTSTR LPSUBKEY);

Delete the specified key.

DeleteKey (HKEY_LOCAL_MACHINE, "STAFF / 0");

DeleteKey (M_HKey, "Name / 0");

6, DeleteValue (LPCTSTR LPVALUENAME);

Delete the specified value from the specified key.

DeleteKey ("Name");

7, SaveKey (LPCTSTR LPFILENAME);

Try to the specified key, subkey, and value into the file.

SaveKey ("Save.Reg");

8, restoreKey (LPCTSTR LPFILENAME);

Read the registry information from the specified file.

RESTOREKEY ("Save.Reg");

9, close (); release the handle of the specified key.

转载请注明原文地址:https://www.9cbs.com/read-49328.html

New Post(0)