SETWINDOWSHOOK APIS

BENJO
03-22-2001, 04:31 PM
Gente, necesito que me oriente con lo siguiente:

El Api SetWindowsHook sirve entre otras cosas para detectar movimientos de mouse y de teclados, cuando le damos el hilo al systema para que llame a una función de mi programa.
Es decir, si no tecleamos nada, mi programa no recibe nada. Cierto?.
Bueno, lo que necesito saber es ¿como saber cuando el sistema o el usuario ejecuta una aplicación? con esta Api o con cualquier otra.
Es decir, que el mismo sistema le avise mi programa que se ha creado un nuevo proceso.

Yo puedo monitorear constantemente el sistema buscando los handles de los tantos que están abiertos, pero ello consume recursos del CPU que quiero evitar, ya que cuando estoy escribiendo en Word, salvo que abra menús o ToolTips , no se añade ningún handle.

Mi program tendría que recibir del sistema un aviso de que por ejemplo se ha abierto un proceso, entonces yo tomo ese handle y me fijo si es una aplicación "x" y en consecuencia hago algo.
Si necesitan más especificaciones, no duden en consultarme al email, se los agradecería muchísimo, ya que es muy importante para una aplicación que estoy desarrollando.
Desde ya quedo a disposición de quien pueda darme una ayuda. Muchas Gracias.

Derek Stone
03-22-2001, 05:04 PM
Puedes leer y escribir ingles?
Comprendo solo un poco de tu pregunta porque es en espanol.
Si escribes en ingles puedo ayudar mas.
Yo no hablo espanol muy bueno.
Creo las otras personas no hablan espanol muy bueno tampoco.

-cl

<a href="http://vb.wsoftware.net" target="_new">http://vb.wsoftware.net</a>

BENJO
03-23-2001, 05:27 AM
People, I need him to guide me with the following thing:

The Api SetWindowsHook is good among other things to detect mouse movements and of keyboards, when we give the thread to the system so that he/she calls to a function of my program.
That is to say, if we don't type anything, my program doesn't receive anything. Certain?.
Good, is what I need to know as knowing when the system or does the user execute an application? with this Api or with any other one.
That is to say that the same system warns him my program that a new process has been created.

I constantly can scanear the system looking for the handles of those so many that are open, but he/she wastes away resources of the CPU that I want to avoid, since when I am writing in Word, unless he/she opens menus or ToolTips, any handle is not added.

My program would have to receive from the system a warning that for example a process has opened up, then I take that handle and I notice if it is an application "x" and in consequence I make something.
If they need more specifications, don't doubt to consult me to the email, he/she would thank them to him very much, since it is very important for an application that I am developing.
From I am already to disposition of who can give me a help. Thank you.

crazed-lunatic


I count you that your Castilian is very good, keeping in mind that my English if it was not for the Power Traslator, it would be terrible.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum