Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/06/2009, 07:33
Avatar de erick_arcini
erick_arcini
 
Fecha de Ingreso: julio-2005
Ubicación: Jaltenco / DF
Mensajes: 1.723
Antigüedad: 18 años, 9 meses
Puntos: 50
Respuesta: desactivar impr pant con c#

Cita:
Iniciado por KatonSP Ver Mensaje
...
Código:
Public Declare Function UnhookWindowsHookEx Lib "user32" (ByVal hHook As Integer) As Integer

Public Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As Integer, ByVal lpfn As KeyboardHookDelegate, ByVal hmod As Integer, ByVal dwThreadId As Integer) As Integer

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Integer) As Integer

Private Declare Function CallNextHookEx Lib "user32" (ByVal hHook As Integer, ByVal nCode As Integer, ByVal wParam As Integer, ByVal lParam As KBDLLHOOKSTRUCT) As Integer
...
Hola, haber prueba con esto:

Código:
[DllImport("user32")]
static extern int UnhookWindowsHookEx(int hHook);
__________________
Mejoremos nuestro país, ayudemos al planeta... próximamente.