Yop à tous,

J'ai un problème bizzare . J'ai cette méthode :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
BOOL __stdcall SetInRun(char * szPath){
	 
	 HKEY hkKey;
	 long iError;

	 if(iError = RegCreateKey(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run\\", &hkKey) != ERROR_SUCCESS)
	 {
		 return FALSE;
	 }
	 
	 if(RegSetValue(hkKey,"radiono",REG_SZ,szPath,MAX_PATH) != ERROR_SUCCESS)
	 {
		 return FALSE;
	 }
	 
	 RegCloseKey(hkKey);

	 return TRUE;
}
Cette méthode ne renvoie aucun code d'erreur. J'ai ERROR_SUCCESS. Mais pourtant, lorsque je regarde dans la registry je ne trouvre pas la clef.

Quelqu'un a-t-il une idée ?

Merci d'avance pour vos suggestion.