Ill figure it out later ill read more in the book...
*This is another program am workin on...*
This is the code it takes me to that has an error:
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Security\\Provider", 0, NULL, &key);
To see the b4 and after stuff in it here:
HKEY key;
DWORD type;
BYTE buffer[30];
DWORD len = sizeof(buffer);
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Security\\Provider", 0, NULL, &key); "this is the line with problem"
RegQueryValueEx(key, "Platform_Type", 0, &type, buffer, &len);
RegCloseKey(key);
if (buffer[0] == 0x02)
return TRUE;
return FALSE;
}
This is the error it shows about the Bool:
In function `BOOL userLevelSharingActive()':
This is the code with the problem:
BOOL userLevelSharingActive(void)
{