VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Start the windows screen saver from within a Visual Basic 6 program.

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&

Rate Start the windows screen saver from within a Visual Basic 6 program.



   SendMessage Form1.hWnd, WM_SYSCOMMAND, _
      SC_SCREENSAVE, 0&
End Sub

Download this snippet    Add to My Saved Code

Start the windows screen saver from within a Visual Basic 6 program. Comments

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..

Post your comment

Subject:
Message:
0/1000 characters