RegQueryValueEx and ÌÌÌÌÌÌÌÌÌÌÌÌÌ !!!!
Does anyone know why my code gives me "ÌÌÌÌÌÌÌÌÌÌÌÌÌ"
Here's the code.
HKEY keyHandle;
char rgValue [1024];
LPCTSTR regPath = "Volatile Environment";
LPCTSTR regReq = "USERDNSDOMAIN";
DWORD size1;
DWORD Type;
if( RegOpenKeyEx(HKEY_CURRENT_USER, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS)
{
RegQueryValueEx( keyHandle, regReq, NULL, &Type, (LPBYTE)rgValue,&size1);
}
RegCloseKey(keyHandle);