How write in the register

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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 :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

Are you writing spyware programs? :wink:
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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! :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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")
Post Reply