I want to get the registry value (kind of char) and show to screen.. but I get "iiiiiiiiiiiiiiiiiiiiiiiii"... where is the problem???
Code:HKEY hKey; DWORD dwLen = sizeof(MAX_PATH); char dwKeyEn[MAX_PATH]; DWORD Type; if (RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders", 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) RegQueryValueEx(HKEY_LOCAL_MACHINE,"Common Startup", NULL, &Type, (LPBYTE)dwKeyEn, &dwLen); MessageBox(NULL, dwKeyEn, "UYARI", NULL); .....



LinkBack URL
About LinkBacks




