Page 1 of 1


Posted: Wed Nov 27, 2019 2:45 pm
by AckiB
:windows: :nolinux:

cRegEd is a class I created to read and write the Windows registry...
Its easy to use...

Code: Select all

	cRegEd reged;
	int tVal = 5;
	// write a value to a key
	reged.regWrite(HKEY_LOCAL_MACHINE, "SYSTEM\\Test\\Testxy", "TestVal", tVal);
	// read a value from a key
	reged.regRead(HKEY_LOCAL_MACHINE, "SYSTEM\\Test\\Testxy", "TestVal", &tVal);
	// get a key and all it's values and sub-key names
	cRegKey* key = reged.getRegistryKey(HKEY_LOCAL_MACHINE, "SYSTEM\\ControlSet001\\Enum");