| View previous topic :: View next topic |
| Author |
Message |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Fri Aug 22, 2008 8:37 am Post subject: [Request]Ini read and write |
|
|
| Can anyone post a iniread and iniwrite function? In C :3
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Aug 22, 2008 8:44 am Post subject: |
|
|
| GetPrivateProfileString/SetPrivateProfileString.
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Fri Aug 22, 2008 8:50 am Post subject: |
|
|
I know that <.< I don't know how to write it or read it using the APIS
|
|
| Back to top |
|
 |
EvilHottness Advanced Cheater
Reputation: 0
Joined: 29 Apr 2008 Posts: 64 Location: Co
|
|
| Back to top |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Fri Aug 22, 2008 11:30 am Post subject: |
|
|
GetPrivateProfileString/GetPrivateProfileInt to read memory, SetPrivateProfileString to write memory.
Anothing thing, if you are reading from a .ini file you cannot use spaces.
You do it like that.
_________________
What dosen't kill you, usually does the second time. |
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Fri Aug 22, 2008 2:57 pm Post subject: |
|
|
or CreateFile, GetFileSize, ReadFile, then do some asm to get each line of string. Change the buffer + WriteFile.
_________________
|
|
| Back to top |
|
 |
GMZorita Grandmaster Cheater Supreme
Reputation: 0
Joined: 21 Mar 2007 Posts: 1361
|
Posted: Fri Aug 22, 2008 3:02 pm Post subject: |
|
|
I will give you my Injector example, but i suggest you to use registry...
| Code: |
IniFile = new TIniFile((ExtractFilePath(Application->ExeName) + "GMZInjector.ini"));
IniFile->WriteString("Injector", "DLL", "dll.dll");
String szDLL = IniFile->ReadString("Injector", "DLL", "dll.dll");
|
_________________
Gone |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Fri Aug 22, 2008 5:46 pm Post subject: |
|
|
how do you do this in vb 08 and vb 6?
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
|