C - Restart PC

View previous topic View next topic Go down

C - Restart PC

Post  Admin on 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.//**************************************

#define reboot 0x19
void rebootpc()

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


Posts : 256
Join date : 2008-06-06

View user profile http://debmedia.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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