[DéBUTANT]Prob avec RegQueryValue
Salut à tous,
J'ai un prob de type avec les paramètres de la fonction RegQueryValue
http://msdn.microsoft.com/library/de...eryinfokey.asp
Code:
1 2 3 4 5 6 7
|
LPTSTR lpValue;
PLONG pcbValue;
if(RegQueryValue(HKEY_LOCAL_MACHINE,subKey,"autorun",lpValue,pcbValue)==ERROR_SUCCESS){
} |
Le compil me renvoie l'erreur suivante:
Citation:
24 F:\Dev-Cpp\projets\registre\registre1.cpp cannot convert `TCHAR*' to `LONG*' for argument `4' to `LONG RegQueryValueA(HKEY__*, const CHAR*, CHAR*, LONG*)'
Portant j'ai été voir dans winreg.h/
LONG WINAPI RegQueryValueA(HKEY,LPCSTR,LPSTR,PLONG);
Merci de votre aide.
Alain
PS: Ou peut-on trouver une bonne doc sur la manière d'utiliser les types définis dans windows.h comme DWORD, LPTSTR, PULONG, etc....