by Visual Basic 6 (1 Submission)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 27th March 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Start the windows screen saver from within a Visual Basic 6 program.
API 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&
SendMessage Form1.hWnd, WM_SYSCOMMAND, _
SC_SCREENSAVE, 0&
End Sub
No comments have been posted about Start the windows screen saver from within a Visual Basic 6 program.. Why not be the first to post a comment about Start the windows screen saver from within a Visual Basic 6 program..