C - Restart PC
Page 1 of 1
C - Restart PC
//**************************************
//
// 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();
}
//
// 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();
}
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum