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

 

 


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  ASM (Moderador: Eternal Idol)
| | | |-+  Problema con ballon notification
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Problema con ballon notification  (Leído 2,214 veces)
.:UND3R:.
Moderador Global
***
Desconectado Desconectado

Mensajes: 3.118


Ingeniería inversa / MASM


Ver Perfil WWW
Problema con ballon notification
« en: 4 Septiembre 2012, 02:26 am »

Hola a todos, estoy intentando hacer dos cosas:
1.- Cargar un ícono en la barra de tareas en la derecha (tray icon).
2.- Mostrar un globo junto con un mensaje (ballon notification).

Tengo el siguiente código:
Código
  1. main PROC
  2.        ....                                              ; calls
  3. call START_TRAY_ICON
  4.        ...                                               ; calls
  5. main ENDP
  6.  
  7. START_TRAY_ICON PROC
  8. mov struct_icon.cbSize,SIZEOF NOTIFYICONDATA ; Tamaño de la structura (SIZEOF)
  9. mov eax,[hdl_proc_name]       ; manejador (handler) del proceso
  10. mov struct_icon.hwnd,eax ; Manejador (Handle) de la ventana que recibirá la notificacion cuando ocurran eventos de ratón sobre el icono de la bandeja
  11. mov struct_icon.uID,ID_ICON ; La constante que es usada como identificador del icono (sirve para chequear desde qué icono de bandeja proviene la notificación)
  12. mov struct_icon.uFlags,NIF_TIP+NIF_ICON+NIF_INFO ; Especifica qué miembros son válidos
  13. mov struct_icon.uCallbackMessage,WM_SHELLNOTIFY ; El mensaje común que Windows mandará a la ventana especificado por el miembro hwnd cuando ocurren eventos sobre el icono de bandeja
  14. INVOKE LoadIcon,NULL,IDI_WINLOGO
  15. mov struct_icon.hIcon,eax
  16. INVOKE lstrcpy,ADDR struct_icon.szTip,ADDR app_name
  17. INVOKE Shell_NotifyIcon,NIM_ADD,ADDR struct_icon
  18.  
  19.  
  20. Push TIME_ICON ; duración del globo en milisegundos
  21. push NIIF_INFO ; icono alerta
  22. push OFFSET error1_title ; titulo
  23. push OFFSET error1 ; mensaje
  24.  
  25. call TRAY_ICON
  26. ret
  27. START_TRAY_ICON ENDP
  28.  
  29.  
  30. TRAY_ICON PROC
  31. ; aquí debería mostrar el mensaje
  32. push ebp
  33. mov ebp,esp
  34. mov eax,[ebp+8h]
  35. INVOKE lstrcpy,ADDR struct_icon.szInfo, eax
  36. mov eax,[ebp+0ch]
  37. INVOKE lstrcpy,ADDR struct_icon.szInfoTitle, eax
  38. mov eax,[ebp+10h]
  39. mov struct_icon.dwInfoFlags,eax
  40. mov eax,[ebp+14h]
  41. mov struct_icon.uTimeout,eax
  42. INVOKE Shell_NotifyIcon,NIM_MODIFY,ADDR struct_icon
  43. pop ebp
  44. ret 10h
  45.  
  46. TRAY_ICON ENDP

Lo estoy haciendo en APP:Console MASM

a ver si me pueden guiar, saludos


En línea


Solicitudes de crack, keygen, serial solo a través de mensajes privados (PM)
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
ballon tool tips text
Programación Visual Basic
Sancho.Mazorka 1 1,212 Último mensaje 4 Marzo 2006, 16:25 pm
por APOKLIPTICO
Notification Control y MyPermissions
Noticias
wolfbcn 0 1,466 Último mensaje 6 Febrero 2012, 03:06 am
por wolfbcn
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines