Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call Win95 Services, such as screensaver, dial-up dialog
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00204087
Message ID:
00205835
Views:
20
>>I want to know which API can do:
>>
>>a) run Screen Saver (e.g. ndshow1.scr)
>
>Hi Justok,
>
>I'll have to research the others, but here's how to activate the screen saver.
>#define WM_SYSCOMMAND 0x0112
>#define SC_SCREENSAVE 0xF140
>DECLARE INTEGER SendMessage IN Win32API;
>  INTEGER hwnd,	INTEGER uMsg,;
>  INTEGER wParam, INTEGER lParam
>DECLARE INTEGER GetDesktopWindow IN Win32API
>lnhWnd = GetDesktopWindow()
>= SendMessage(lnhWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0)


Thanks George, it works fine for window standard screen saver,
but it get errors in the screen saver is made by screen saver tools...

Actually, I miss the statement to call screen saver by using RUNDLL32.exe

the statement will sth like:

RUNDLL32.exe desk.cpl,.... myscreen.scr

>.<'
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform