=== FAQ === Q: How to lockup desktop? Start/Call Screensaver? A: Short: You can call Lockup icon on eCenter (yellow lock). So use Doodle screensaver Call SSCore_StartSavingNow() function. Example: load dll, call the function. Detailed information: There is an old system API to start the built-in system lockup (and to get out of it). They are called WinLockupSystem() and WinUnlockSystem(). http://cyberkinetica.homeunix.net/os2tk45/pm2/1489_L2_WinLockupSystem.html http://cyberkinetica.homeunix.net/os2tk45/pm2/3460_L2_WinUnlockSystem.html However, they always start the old, built-in system lockup sequence. So, the best method to lock up a system would be the following: - Check if DSSaver is installed (if sscore.dll can be loaded) - If DSSaver is installed: - call SSCore_StartSavingNow() - If DSsaver is not installed: - call WinLockupSystem() Another way to do it would be to "simulate" the pressing of that yellow Lockup icon on eCenter. That is not more than a simple rexx script, which simply opens a WPS object. If one can open that WPS object programmatically, then the very same effect will be reached (meaning that the current lockup method will be called). thx Doodle, 2010/11/29 === PM, Menu, как узнать размеры меню _до того_, как его 1-й раз покажет WinPopupMenu? === Glassman: WinPopupMenu( HWND_OBJECT, HWND_OBJECT, hmenu, 0, 0, 0, 0 );