|
|
|
|
|
Dicas
|
|
Visual Basic (ActiveX/Controles/DLL)
|
|
|
Título da Dica: Ativar Proteção de Tela
|
|
|
|
Postada em 6/3/2007 por Edinei
neisjb@hotmail.com
' Em General Declarations
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, _ ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long Const WM_SYSCOMMAND = &H112& Const SC_SCREENSAVE = &HF140&
'NO FORM COLOQUE ISTO ABAIXO
Private Sub Command1_Click() Dim result As Long result = SendMessage(Me.hWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0&)
End Sub
|
|
|
|
|