DLL Code for "Private server"
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:
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.
Re: [Release] DLL Code for "Private server"
Quote:
Originally Posted by
Xeron
Code:
C:\MASM32\BIN>link /subsystem:windows /dll /def:mydefile.def /libpath:mydll.obj
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to IX86
LINK : fatal error LNK1159: no output file specified
Not understanding what I'm doing wrong...I have the .obj in the same folder
I'm too got this error. help us please
Re: [Release] DLL Code for "Private server"
Re: [Release] DLL Code for "Private server"
the last 3 posters are totaly idiots .... reviving a 2-years-old thread ... guys ur brain is missing faggets
Re: [Release] DLL Code for "Private server"
Shut-up. lol. I need help, but i'm not need you stupid topic.
Re: [Release] DLL Code for "Private server"
you stupid idiot ... how could u get help if this thread is from 2006 ?
Re: [Release] DLL Code for "Private server"
Great code
i need it thanks
1 Attachment(s)
Re: [Release] DLL Code for "Private server"
Hi, can someone hook what .dll into my gs? I read a guide how to hook, but when I'm hooking isn't all good right where writing. Thx!
Re: [Release] DLL Code for "Private server"
Please help me someone!!! Thx!
Re: [Release] DLL Code for "Private server"
anyone have C++ version of this?
Re: [Release] DLL Code for "Private server"
Re: [Release] DLL Code for "Private server"
Quote:
Originally Posted by
Shatter
anyone have C++ version of this?
OMG I thought you are a coder, and you can't redo that little piece of code in C++ :lol: