CTRL ALT DEL
Alguem me ajude por favor!!!!!!!!!!!!!1
Como eu consigo travar o ctrl+alt+del em um programa feito no vb?
Como eu consigo travar o ctrl+alt+del em um programa feito no vb?
Coloca 1 timer e adciona esse codigo ai que fuciona com certeza...
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Private Sub Form_Load()
Timer1.Interval = 1
End Sub
Private Sub Timer1_Timer()
Dim x As Long
x = FindWindow("#32770", vbNullString)
Do
DoEvents
x = FindWindow("#32770", vbNullString)
Call ShowWindow(x, SW_HIDE)
Loop Until x <> 0
DisableAltCtrlDel = x
End Sub
Qalquer duvida manda 1 email...
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Private Sub Form_Load()
Timer1.Interval = 1
End Sub
Private Sub Timer1_Timer()
Dim x As Long
x = FindWindow("#32770", vbNullString)
Do
DoEvents
x = FindWindow("#32770", vbNullString)
Call ShowWindow(x, SW_HIDE)
Loop Until x <> 0
DisableAltCtrlDel = x
End Sub
Qalquer duvida manda 1 email...
Tópico encerrado , respostas não são mais permitidas