Hi to all..
why why and why RRF_RT_ANY is not recognized??Code:#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <string.h> .. .. .. char ControllaCartelleStartup(char chiave[]){ HKEY hKey; char folder[MAX_KEY]; if((RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", 0, KEY_ALL_ACCESS, &hKey))!= ERROR_SUCCESS){ MessageBox(NULL, "Errore nel leggere il registro.\n", "Errore in lettura:", // Titolo del messagebox MB_OK); }//End errore nell'aprire reg RegGetValue(hKey, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Common Startup", RRF_RT_ANY, NULL, folder, sizeof(folder)); }//end ControllaCartelleStartup
thanx776 C:\Programmi\Dev-Cpp\Progetti\Enumera Valori\main.c `RRF_RT_ANY' undeclared (first use in this function)
documentation : RegGetValue
dwFlags
[in] Restricts the data type of value to be queried. If the data type of the value does not meet this criteria, the function fails. This parameter can be one of the following values.
RRF_RT_ANY No type restriction.



LinkBack URL
About LinkBacks





hahah yesterday I lost 30 mins for this stupid thing!!