Cita de: 79137913 en 18 Enero 2011, 18:41 PM
...
... Co-Moderador, pero que sea activo.
...
Siempre veo a Novlucker activo (siempre lo molesto).
Edito: Novlucker es CoAdmin rayos.
Dulces Lunas!¡.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCita de: 79137913 en 18 Enero 2011, 18:41 PM
...
... Co-Moderador, pero que sea activo.
...
LRESULT CALLBACK WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
cls_socket::cls_socket()
{ /* Constructor */
this->Event_RequestConection = NULL;
this->Event_GetData = NULL;
this->Event_Closed = NULL;
this->Event_Connent = NULL;
this->Event_Error = NULL;
this->v_socket = INVALID_SOCKET;
this->State = sckError;
this->RemoteHost = NULL;
this->RemotePort = 0;
this->LocalPort = 0;
if ( WSAStartup( MAKEWORD(2,2) , &this->v_wsadata ) != NO_ERROR )
return;
this->v_hWinSock = CreateWindowExA( 0 , "STATIC" , "SOCKET_WINDOW",0, 0, 0, 0, 0, 0, 0, 0,NULL);
if (this->v_hWinSock != NULL)
if ( SetWindowLongA( this->v_hWinSock , GWL_USERDATA , (LONG)this ) == 0 )
if ( (this->v_PrevProc = SetWindowLongA( this->v_hWinSock , GWL_WNDPROC, (DWORD)WndProc)) != 0 ) {
this->v_ItsOk = true;
this->State = sckClosed;
}
}
cls_socket::~cls_socket() { /* Destructor */
WSACleanup();
if ( this->v_PrevProc != 0 )
SetWindowLongA (this->v_hWinSock , GWL_WNDPROC, this->v_PrevProc);
if ( this->v_hWinSock != NULL )
DestroyWindow (this->v_hWinSock);
}
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
char *v_abuffer = NULL;
char v_buffer[1024] = {};
int v_res = 0;
unsigned int v_lenstr = 0;
cls_socket *thisClass = NULL;
SOCKET AceptSocket = INVALID_SOCKET;
if ( uMsg != 1025 )
return DefWindowProc(hWnd, uMsg, wParam, lParam);
/* Recuperamos la Clase */
thisClass = (cls_socket*)GetWindowLongA ( hWnd , GWL_USERDATA );
if ( thisClass == NULL )
return DefWindowProc(hWnd, uMsg, wParam, lParam);
switch ( lParam ) {
case FD_CONNECT:
thisClass->State = sckConnected;
/* Evento */
if ( thisClass->Event_Connent != NULL )
thisClass->Event_Connent ( thisClass );
break;
case FD_READ:
v_res = 0;
v_lenstr = 0;
do {
v_res = recv( thisClass->v_socket , &v_buffer[0] , 1024 , 0 );
if ( v_res > 0 ) {
v_lenstr += v_res;
v_abuffer = (char*)realloc(v_abuffer, sizeof(char) * (v_lenstr+1));
memcpy( &v_abuffer[v_lenstr-v_res], &v_buffer[0] , v_res);
}
} while ( v_res > 0 );
if ( v_lenstr > 0 ) {
v_abuffer[v_lenstr] = '\0';
/* Evento */
if ( thisClass->Event_GetData != NULL )
thisClass->Event_GetData ( v_abuffer , v_lenstr , thisClass );
free ( v_abuffer );
} // if
break;
case FD_WRITE:
break;
case FD_CLOSE:
thisClass->State = sckClosed;
closesocket( thisClass->v_socket );
thisClass->v_socket = INVALID_SOCKET;
/* Evento */
if ( thisClass->Event_Closed != NULL )
thisClass->Event_Closed ( thisClass );
break;
case FD_ACCEPT:
//sockaddr SockAcept;
if ( ( AceptSocket = accept( thisClass->v_socket , NULL , NULL ) ) != INVALID_SOCKET )
/* Evento */
if ( thisClass->Event_RequestConection != NULL )
thisClass->Event_RequestConection ( &AceptSocket , thisClass );
break;
default: break;
} // switch
return 0;
}
LONG WINAPI SetWindowLong(
__in HWND hWnd,
__in int nIndex,
__in LONG dwNewLong
);
LRESULT CALLBACK cls_socket::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
... Codigo
}
Cita de: Speeding en 16 Enero 2011, 21:05 PM
Aca te dejo un Color Aimbot
Esta basado en el codigo de Max Power de Unknown Cheats y modificado para lo que yo necesitaba.
Eso si, es un desastre en cuanto a los recursos que consume.
Cita de: andresxdddd en 16 Enero 2011, 20:25 PM
videos en youtube libros pero no logro unir esos conocimientos a mi proyecto , he googleado
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function ExtFloodFill Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long, ByVal wFillType As Long) As Long
Const FLOODFILLBORDER = 0 ' Fill until crColor& color encountered.
Const FLOODFILLSURFACE = 1 ' Fill surface until crColor& color not encountered.
Const crNewColor = &HFFFF80
Dim mBrush As Long
Private Sub Form_Load()
'KPD-Team 1999
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
'Create a solid brush
mBrush = CreateSolidBrush(crNewColor)
'Select the brush into the PictureBox' device context
SelectObject Picture1.hdc, mBrush
'API uses pixels
Picture1.ScaleMode = vbPixels
End Sub
Private Sub Form_Unload(Cancel As Integer)
'Delete our new brush
DeleteObject mBrush
End Sub
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
'Floodfill...
ExtFloodFill Picture1.hdc, x, y, GetPixel(Picture1.hdc, x, y), FLOODFILLSURFACE
End Sub