Page 1 of 1

Posted: Wed Mar 05, 2003 10:30 pm
by BackupUser
Restored from previous forum. Originally posted by Julien Morel.

How to write in the register with version PB 3.51
I want to write in the register to launch my program on start Windows
Thank :)

Posted: Wed Mar 05, 2003 10:55 pm
by BackupUser
Restored from previous forum. Originally posted by Pupil.

Are you writing spyware programs? :wink:

Posted: Wed Mar 05, 2003 11:03 pm
by BackupUser
Restored from previous forum. Originally posted by Julien Morel.
Originally posted by Pupil

Are you writing spyware programs? :wink:

No !! I write an program (for me) who hide AOL beaucause i prefer Internet Explorer

Posted: Wed Mar 05, 2003 11:15 pm
by BackupUser
Restored from previous forum. Originally posted by Pupil.

I was only a bit curious and thought i'd ask. It was not meant to offend you in any way and i regret if it did.

Posted: Wed Mar 05, 2003 11:25 pm
by BackupUser
Restored from previous forum. Originally posted by Julien Morel.
Originally posted by Pupil

I was only a bit curious and thought i'd ask. It was not meant to offend you in any way and i regret if it did.
It is not serious whole

Posted: Thu Mar 06, 2003 12:03 am
by BackupUser
Restored from previous forum. Originally posted by Kale.

The registry can be handled via the WinAPI, download this: http://www.allapi.net/agnet/apiguide.shtml to have a quick and easy reference to the WinAPI :)

--Kale

In love with PureBasic! :)

Posted: Thu Mar 06, 2003 8:33 am
by BackupUser
Restored from previous forum. Originally posted by Berikco.

In the PureBasic editor source, you can find an example of writing registry.

Regards,

Berikco

http://www.benny.zeb.be/purebasic.htm

Posted: Thu Mar 06, 2003 10:31 am
by BackupUser
Restored from previous forum. Originally posted by Julien Morel.

My code written in the register. How to destroy key of the registry?


My code is :


Procedure.l WriteRegKey(OpenKey.l,SubKey.s,keyset.s,keyvalue.s)
hKey.l=0
If RegCreateKey_(OpenKey,SubKey,@hKey)=0
result=1
datasize.l=Len(keyvalue)
If RegSetValueEx_(hKey,keyset,0,#REG_SZ,@keyvalue,datasize)=0
result=2
EndIf
RegCloseKey_(hKey)
EndIf
ProcedureReturn result
EndProcedure


result.l=WriteRegKey(#HKEY_LOCAL_MACHINE,"SOFTWARE\My soft\version6","Nom","valeur")