elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: 1 ... 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 [342] 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 ... 385
3411  Programación / ASM / Re: Que Software uso para programar en ASM? en: 29 Diciembre 2009, 00:05 am
Por cierto para fabricar GUI en windows es muy bueno el RADASM :P

Aclarar que RadASM es un: "Win32 assembly IDE for masm/tasm/fasm/nasm/goasm/hla".
3412  Programación / ASM / Re: Que Software uso para programar en ASM? en: 28 Diciembre 2009, 23:37 pm
MASM: la plataforma que me interesa es Windows (x86 y x64) y en la misma es el ensamblador con mas usuarios, mas soporte, mas literatura (tutoriales, libros, etc.), mas codigo fuente, mas ejemplos y mejor integracion con las demas herramientas de Microsoft. Ademas tiene años de desarrollo bajo sus espaldas y cientos de programadores que lo dominan.
No me quiero olvidar del paquete MASM32 que, tambien de larga data, junto con los tutoriales de Iczelion son la mejor manera de aprender a manejarse dentro de Windows.
En definitiva MASM como su nombre lo indica es un MACRO ensamblador muy potente, por eso lo recomiendo, con el cual se puede desarrollar multitud de proyectos que van desde aplicaciones de consola o GUI de modo Usuario pasando por servicios de Windows hasta llegar a modulos de modo Kernel.
3413  Programación / ASM / Re: Creacion de controles Personalizados? (ASM 32 Bits) en: 27 Diciembre 2009, 21:57 pm
eso es asm? parece C++ xD
O quizas parece mi in-experiencia.

Es C ... ya podrias haber puesto algun ejemplo del tema en assembly  :rolleyes:
3414  Programación / ASM / Re: Modificar Controles de otras ventanas (ASM) en: 27 Diciembre 2009, 18:26 pm
GetParent.

Cita de: MSDN
The GetParent function retrieves a handle to the specified window's parent or owner.
3415  Programación / ASM / Re: Modificar Controles de otras ventanas (ASM) en: 27 Diciembre 2009, 18:01 pm
EnumWindows/EnumChildWindows, GetParent,  GetWindowInfo (para la clase), GetWindowText y SendMessage para casi todo  ;D
3416  Programación / ASM / Re: Que Software uso para programar en ASM? en: 26 Diciembre 2009, 15:05 pm
este foro esta lleno de respuestas sobre ASM pero no hay un enlace que diga que y donde descargar el mejor soft para empezar con esto.

 :silbar:

Entry point: MASM32.
3417  Programación / ASM / Re: Creacion de controles Personalizados? (ASM 32 Bits) en: 25 Diciembre 2009, 20:15 pm
Si, owner drawn, de la MSDN (no lo encuentre on-line  :():

Using Owner Drawn Buttons
The parent window of an owner-drawn button typically responds to at least three messages for the button:

WM_INITDIALOG
WM_COMMAND
WM_DRAWITEM
When you must paint an owner-drawn button, the system sends the parent window a WM_DRAWITEM message whose lParam parameter is a pointer to a DRAWITEMSTRUCT structure. Use this structure with all owner-drawn controls to provide the application with the information it requires to paint the control. The itemAction and itemState members of the DRAWITEMSTRUCT structure define how to paint an owner-drawn button.

The following example shows how to process WM_INITDIALOG, WM_DRAWITEM, and WM_COMMAND messages for owner-drawn buttons. This example demonstrates how to draw one of two bitmaps for a control, depending on whether the control is selected. You would typically use the wParam parameter of the WM_DRAWITEM message to identify the control; in this example, only one control is assumed.

Código
  1. BOOL CALLBACK OwnDrawProc(HWND hDlg, UINT message, WPARAM wParam,
  2.                          LPARAM lParam)
  3. {
  4.    HDC hdcMem;
  5.    LPDRAWITEMSTRUCT lpdis;
  6.  
  7.    switch (message)
  8.    {
  9.        case WM_INITDIALOG:
  10.  
  11.            // hinst, hbm1 and hbm2 are defined globally.
  12.            hbm1 = LoadBitmap((HANDLE) hinst, "OwnBit1");
  13.            hbm2 = LoadBitmap((HANDLE) hinst, "OwnBit2");
  14.            return TRUE;
  15.  
  16.        case WM_DRAWITEM:
  17.            lpdis = (LPDRAWITEMSTRUCT) lParam;
  18.            hdcMem = CreateCompatibleDC(lpdis->hDC);
  19.  
  20.            if (lpdis->itemState & ODS_SELECTED)  // if selected
  21.                SelectObject(hdcMem, hbm2);
  22.            else
  23.                SelectObject(hdcMem, hbm1);
  24.  
  25.            // Destination
  26.            StretchBlt(
  27.                lpdis->hDC,         // destination DC
  28.                lpdis->rcItem.left, // x upper left
  29.                lpdis->rcItem.top,  // y upper left
  30.  
  31.                // The next two lines specify the width and
  32.                // height.
  33.                lpdis->rcItem.right - lpdis->rcItem.left,
  34.                lpdis->rcItem.bottom - lpdis->rcItem.top,
  35.                hdcMem,    // source device context
  36.                0, 0,      // x and y upper left
  37.                32,        // source bitmap width
  38.                32,        // source bitmap height
  39.                SRCCOPY);  // raster operation
  40.  
  41.            DeleteDC(hdcMem);
  42.            return TRUE;
  43.  
  44.        case WM_COMMAND:
  45.            if (wParam == IDOK
  46.                || wParam == IDCANCEL)
  47.            {
  48.                EndDialog(hDlg, TRUE);
  49.                return TRUE;
  50.            }
  51.            if (HIWORD(wParam) == BN_CLICKED)
  52.            {
  53.                switch (LOWORD(wParam))
  54.                {
  55.                    case IDC_OWNERDRAW:
  56.  
  57.                        // application-defined processing
  58.  
  59.                        break;
  60.                }
  61.            }
  62.            break;
  63.  
  64.        case WM_DESTROY:
  65.            DeleteObject(hbm1);  // delete bitmaps
  66.            DeleteObject(hbm2);
  67.  
  68.            break;
  69.  
  70.    }
  71.    return FALSE;
  72.        UNREFERENCED_PARAMETER(lParam);
  73. }
3418  Programación / ASM / Re: Manifest en Esnamblador 32 Bits en: 25 Diciembre 2009, 19:07 pm
Te recomiendo buscar manifest en el foro de C/C++.
3419  Programación / ASM / Re: Ventana en ASM en: 20 Diciembre 2009, 23:07 pm
No, es MASM ... saca offset y listo.
3420  Programación / ASM / Re: Ventana en ASM en: 20 Diciembre 2009, 22:28 pm
Código
  1. .data
  2. buff db 512 dup(0)
  3.  
  4. .code
  5. main:
  6. push 512
  7. push offset buff
  8. call GetSystemDirectoryA
Páginas: 1 ... 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 [342] 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 ... 385
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines