Computing.Net > Forums > Windows 95/98 > Need to code a reboot program in Windows 9x

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need to code a reboot program in Windows 9x

Reply to Message Icon

Name: Sajjad
Date: January 25, 2000 at 08:05:54 Pacific
Comment:

Hi there! I want to code in any programming
language (eg. C, Assambly or VB..) to reboot
my computer from windows 9x. I can only manage to write codes in Turbo C for Dos to make it happen. There it's so simple...but in
windows version I could't manage. So can anybody pls. let me know how can I code to restart from windows? Thank in Advance.



Sponsored Link
Ads by Google

Response Number 1
Name: Blake
Date: January 25, 2000 at 08:55:23 Pacific
Reply:

http://search.microsoft.com/us/dev/
search their library and KB for REBOOT.

Also, do a search for REBOOT.exe on the web. There are many versions of it out there and you can use it by calling it from within your program


0

Response Number 2
Name: Steve V
Date: January 25, 2000 at 08:55:51 Pacific
Reply:

http://msdn.microsoft.com/library/periodic/period97/gui33d.htm


0

Response Number 3
Name: tessio
Date: January 26, 2000 at 05:55:43 Pacific
Reply:

you could use this command line and the only thing that you need to have is rundll (32) or just the plain one. Once you have made sure that you have this you could paste this command in and use the shell command in turbo C and paste :
C:\WINDOWS\RUNDLL.exe user.exe,ExitWindowsExec

please note that this should be put in one line.
compile the program and you will be able to reboot your machine. if this fails email me and i will send you a small program i did in visual basic 6. PS. make sure you have vbrun60.dll for this though.

Have a nice day


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


post dail terminal screen DVD VXD errors ! n e idea...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Need to code a reboot program in Windows 9x

Not able to create a new folder in www.computing.net/answers/windows-95/not-able-to-create-a-new-folder-in-/127474.html

What files are needed to run a bootdisk www.computing.net/answers/windows-95/what-files-are-needed-to-run-a-bootdisk/87007.html

Password Protect A Program in Windows www.computing.net/answers/windows-95/password-protect-a-program-in-windows/118515.html