Newbie Spellweaver
- Joined
- Sep 25, 2005
- Messages
- 78
- Reaction score
- 1
Well i get this has a request from camus, he was asking:
"i got a private server of payment, and i need some way to update the connectmember list every 1 hour".
So after think a little i find how in a DLL caused on SQL i dont know and also its very easy to config the time in this code, it should work for every server owner than dont want to be pressing the button for reload all options, also this reload ONLY ConnectMember.txt and not the rest of files. :busted_re
Here source:
Compiled and 100% working, also i will explain the only important part:
the GShWnd its the hWnd of father window, the IDC_TIMER is the producer wich cant not be 0 and the important part its the 60000 ms, wich means 1 minute and MemberReload is the fuction when it will jump once than timer has over.
Well this update the ConnectMember list, very usefull for some guys of payment server.
Way to compile it:
1.- Download MASM
2.- Open ML.exe and set:
ML.EXE /c /Cp /coff MyDLL.asm
3.- .obj file will be generated
4.- Open notepad and set this:
LIBRARY MyDLL
EXPORTS Loaded
5.- Save file has Mydefile.def
6.- Open Link.exe and set:
LINK.EXE /SUBSYSTEM:WINDOWS /DLL /DEF:Mydefile.def /LIBPATH: MyDLL.obj
Coded by FeN$x :kwasny(1)
Requested by Camus
Mission finished.
Good luck my brothers of coding and ciao.
"i got a private server of payment, and i need some way to update the connectmember list every 1 hour".
So after think a little i find how in a DLL caused on SQL i dont know and also its very easy to config the time in this code, it should work for every server owner than dont want to be pressing the button for reload all options, also this reload ONLY ConnectMember.txt and not the rest of files. :busted_re
Here source:
Code:
.386
.Model flat, StdCall
Option CaseMap:none
Include \masm32\include\windows.inc
Include \masm32\include\user32.inc
Include \masm32\include\kernel32.inc
Include \masm32\include\masm32.inc
IncludeLib \masm32\lib\user32.lib
IncludeLib \masm32\lib\kernel32.lib
IncludeLib \masm32\lib\masm32.lib
MemberReload Proto :DWord, :DWord, :DWord, :DWord
.Const
IDC_TIMER Equ 3
.Data
ConnectMember DB "ConnectMember.txt", 0
GetNewPath DD 0040332DH
LoadMemberList DD 004040EDH
.Code
DllEntry Proc hInstDLL:HINSTANCE, reason:DWord, reserved1:DWord
Mov Eax, TRUE
Ret
DllEntry EndP
Loaded Proc
Local GShWnd:DWord
Mov Eax, DWord Ptr Ds:[6D5F50CH]
Mov GShWnd, Eax
Invoke SetTimer, GShWnd, IDC_TIMER, 60000, Addr MemberReload
Ret
Loaded EndP
MemberReload Proc hwnd:DWord, uMsg:DWord, idEvent:DWord, dwTime:DWord
Push Offset ConnectMember
Mov Ecx, 61D4FC0H
Call GetNewPath
Push Eax
Mov Ecx, 3A67980H
Call LoadMemberList
Ret
MemberReload EndP
End DllEntry
Compiled and 100% working, also i will explain the only important part:
Code:
Invoke SetTimer, GShWnd, IDC_TIMER, 60000, Addr MemberReload
the GShWnd its the hWnd of father window, the IDC_TIMER is the producer wich cant not be 0 and the important part its the 60000 ms, wich means 1 minute and MemberReload is the fuction when it will jump once than timer has over.
Well this update the ConnectMember list, very usefull for some guys of payment server.
Way to compile it:
1.- Download MASM
2.- Open ML.exe and set:
ML.EXE /c /Cp /coff MyDLL.asm
3.- .obj file will be generated
4.- Open notepad and set this:
LIBRARY MyDLL
EXPORTS Loaded
5.- Save file has Mydefile.def
6.- Open Link.exe and set:
LINK.EXE /SUBSYSTEM:WINDOWS /DLL /DEF:Mydefile.def /LIBPATH: MyDLL.obj
Coded by FeN$x :kwasny(1)
Requested by Camus
Mission finished.
Good luck my brothers of coding and ciao.
Last edited: