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:
00204246
Views:
21
>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)
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform