Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Postmessage
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00471158
Message ID:
00471206
Views:
14
>i developed a small application where i force some application to quit!
>
>DECLARE SHORT PostMessage In win32api ;
> INTEGER hWnd, ;
> INTEGER uMsg, ;
> INTEGER wParam, ;
> INTEGER lParam
> zzzzzzzz = UPPER(ALLTRIM(JANELA))
> mhandle = ISRUN("&zzzzzzzz")
> IF mhandle <> 0 && ESTÁ RODANDO - DESCARREGAR !!!!!!!!!!!!!!!!!!!!!!!!!
> =PostMessage(mhandle,16,0,0)
>endif
>
>at same computers (win 98 SE) if the screen saver is active, the application can't force quit the programs!
>
>any idea?
>
sergio

Try the following (applies only to Win98 and 2K).
#DEFINE SPI_GETSCREENSAVERRUNNING 114
DECLARE INTEGER SystemParametersInfo IN Win32API;
  INTEGER uiAction, SHORT uiParam,;
  INTEGER @pvParam, INTEGER fWinIni
lvParm = 0
llresult = (SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @lvParm, 0) # 0)
IF llresult
  IF lvParm # 0
    ? "Screen Saver Running"
  ELSE
    ? "Screen Saver not Running"
  ENDIF
ELSE
  ? "API Called failed"
ENDIF
George

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

Click here to load this message in the networking platform