.....But if you're the adventurous type, here goes
Add the following code in MFC application or make Win32 Dynamic link library and then add the code. It works fine on Win9x only,
it was not tested on xp/nt and hope it wont work on NT based tech.
int __stdcall Clear_Cmos( )
{
_outp(0x70,0x2E); //password will get cleared
_outp(0x71,0xFF);
/* if you want to clear whole CMOS
use following code
for(int i=0;i<256;i++) // whole cmos will get cleared
{
_outp(0x70,i);
_outp(0x71,i);
}
*/
return 0;
}
that will totally wipe out your CMOS.