Hi, I have a problem with the API RegSetValueEx and others like RegQueryEx.... Where can I find some Sources about them? Here is my Code, if somebody see anything E-mail me please. .data Sous_Clef db "Software\Microsoft\Windows\CurrentVersion",0 ; Class_Clef db "Simple Class Key Of Morgatte",0 Valeur_Clef db "RegisteredOwner",0 Donnee_Valeur db "OOP",0 okok db "C'est Ok",0 nono db "Pas Bon",0 .data? pHKey HANDLE ? .code start: invoke RegOpenKeyEx, HKEY_LOCAL_MACHINE, offset Sous_Clef, 0, KEY_ALL_ACCESS, offset pHKey invoke RegSetValueEx, offset pHKey, offset Valeur_Clef, 0, REG_SZ, offset Donnee_Valeur, size Donnee_Valeur .if eax==ERROR_SUCCESS ; I have this message with RegOpen but not with RegSet invoke MessageBox, 0, addr okok, addr okok, 0 .else invoke MessageBox, 0, addr nono, addr nono, 0 .endif invoke RegCloseKey, offset pHKey xor eax, eax invoke ExitProcess,eax @+
Posted on 2000-11-17 15:07:00 by Morgatte
I made some sample code looong ago for this, see the general section at: http://here.is/COMinASM Be advised, this code has a bug preventing it to work in NT (so I hear, I don't have access to NT)
Posted on 2000-11-17 20:45:00 by TTom
Change From: invoke RegSetValueEx, offset pHKey, offset Valeur_Clef, 0, REG_SZ, offset Donnee_Valeur, size Donnee_Valeur To: invoke RegSetValueEx, pHKey, offset Valeur_Clef, 0, REG_SZ, offset Donnee_Valeur, sizeof Donnee_Valeur
Posted on 2000-11-17 23:19:00 by Ewayne
Thanks, I try and it Works now.
Posted on 2000-11-18 03:19:00 by Morgatte