Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First above all else
Message
From
06/12/1998 14:21:39
 
 
To
06/12/1998 14:08:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00163551
Message ID:
00164562
Views:
18
>Hi Josh,
>
>Thanks. It works. I think the ZAK is too massive for a simple task to be accomplished. Hpowever, I have 2 more questions :-
>
>1. The key hkey_current_user\software\windows nt\winlogon is for WinNT, I supposed. I tried to look for a similar key in Win95, but could not find one. Is there one corresponding entry inthe registry?

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Winlogon

>
>2. My application launches, ok. But when it exits, I'm left with a blank DeskTop. I can't expect the user to Ctrl-Escape to shutdown Win95. Can Win95 be shutdown from within the VFP app?

VFP can call a Win32 API function to shut down Windows (under NT, there is an assumption that the user has the necessary permissions to do so.) The call I use when I want the system to restart Windows from scratch is:
DECLARE SHORT ExitWindowsEx IN Win32API ;
 INTEGER nShutDownMode, ;
 INTEGER nReserved
#DEFINE LoginNewUserFlagValue  0  && Fires login new user dialog
#DEFINE ShutdownFlagValue  1      && Shutdown, no restart
#DEFINE RestartFlagValue  2       && Restart Windows, if needed, do a cold boot
CLOSE ALL
FLUSH
=ExitWindowsEx(RestartFlagValue,0)

Because of issues involving shelling and OLE, I would not try to have a VFP application replace the default shell;  ZAK, while complex, doesn't interfere with shell-related extensions to the operating system, and can make as much of Win95's base functionality available to the system;  you provide no mechanism for maintenance of the system if you load the VFP app as the shell.
>
>
>
>>>Is there a way to launch a VFP application on power up, without the Taskbar, Desktop, and the Explorer program in Win95?
>
>>I think you can do it by going into the system.ini and changing the shell=explorer.exe to shell=myapp.exe.
>
>>Goto hkey_current_user\software\windows nt\winlogon and change the shell from explorer.exe to your program name.
>
>TIA
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform