"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\TIT"
In the Run key, it has a value TIT (which holds "hello"). I just want it deleted (using cpp of course).

This is my current code, problem is that the type of lKeyVal is wrong I think.

Code:
#include <windows.h>
#include <iostream.h>

int main()
{
	long rEt;
	HWND lKeyVal;
	rEt = RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\TIT", lKeyVal);
	rEt = RegDeleteValue(lKeyVal, "TIT");
	rEt = RegCloseKey(lKeyVal);
                return(0);
}