Debmedia Creation Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

C - Restart PC

Go down

C - Restart PC Empty C - Restart PC

Post  Admin Fri Mar 19, 2010 7:29 pm

//**************************************
//
// Name: ReBoot a PC through C
// Description:This program uses BIOS in
// terrupt 0x16 to reboot a PC. Compiled wi
// th Turbo C++ 3.0 .
NOTE: Please use this program under DOS mode! It maybe not run under Windows..
// By: Mahatab-ur-Rashid
//
// Assumes:Must have knowledge about BIO
// S, BIOS interrupt concept.
//
// Side Effects:No side effects (as i kn
// ow!)
//
//This code is copyrighted and has// limited warranties.Please see http://
// www.Planet-Source-Code.com/vb/scripts/Sh
// owCode.asp?txtCodeId=1857&lngWId=3//for details.//**************************************
//

#include<dos.h>
#define reboot 0x19
void rebootpc()


{
union REGS inregs,outregs;
int86(reboot, &inregs, &outregs); // Call BIOS
}
void main()


{
rebootpc();
}
Admin
Admin
Admin

Posts : 256
Join date : 2008-06-06

https://debmedia.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum