VB icon

Winkey

Email
Submitted on: 1/4/2015 1:50:00 PM
By: Abu-Mavia (from psc cd)  
Level: Beginner
User Rating: By 6 Users
Compatibility: C
Views: 784
 
     Its an aunthication Program which you can use it to load at the windows startup by using Autoexec.bat file.
 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//INCLUDE files for :Winkey
//**************************************
graphics.h , conio.h , stdio.h.
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
//**************************************
// Name: Winkey
// Description:Its an aunthication Program which you can use it to load at the windows startup by using Autoexec.bat file.
// By: Abu-Mavia (from psc cd)
//**************************************

/* Abu-Mavia Presents.
 Password is : mavia 
 winkey.c */
#include<string.h>
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
main()
{
char ah,bh,ch,dh,eh,fh,gh,hh,ih,jh;
int gd=DETECT ,gm,x,y;
int n=1;
str:
initgraph(&gd,&gm,"c:\\tc\\bgi"); // Here is path of your tc dir..
x=getmaxx();
y=getmaxy();
setfillstyle(3, 1);
setcolor(WHITE);
bar(-1,-1,640,480);
rectangle(x/30,y/20,x/1.03,y/1.03);
rectangle(x/30,y/2,x/1.03,y/1.03);
outtextxy(x/1.8+25,y/1.15+5,"Abu-Mavia Presents");
outtextxy(x/1.8+25,y/1.1+5,"E-Mail:mrmasood@hotmil.com");
rectangle(247,175,328,192);
outtextxy(173,180,"Password:");
gotoxy(32,12);
while(!kbhit())
{
n++;
setcolor(n);
outtextxy(250,179," ? ? ? ?");
outtextxy(x/2.3+25,y/18+8,"WINKEY");
delay(100);
}
ah=getch();
printf("*");
if(ah=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
bh=getch();
printf("*");
if(bh=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
ch=getch();
printf("*");
if(ch=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
dh=getch();
printf("*");
if(dh=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
eh=getch();
printf("*");
if(eh=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
fh=getch();
printf("*");
if(fh=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
gh=getch();
printf("*");
if(gh=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
hh=getch();
printf("*");
if(hh=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
ih=getch();
printf("*");
if(ih=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
jh=getch();
printf("*");
if(jh=='\r')
{
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 { goto yes; } goto wro;
}
if(ah=='m' && bh=='a' && ch=='v' && dh=='i' && eh=='a')
 {
yes:
gotoxy(30,18);
//printf("\a\a");
setcolor(WHITE);
outtextxy(200,300,"Success Full");
sound(2000); delay(200); nosound();
sound(1000); delay(200); nosound();
//printf("Press Any Key");
//getch();
 }
else
 {
 wro:
 sound(2000); delay(300); nosound();
 setcolor(WHITE);
 outtextxy(x/9+10,y/18+8,"Wrong Entry");
 delay(500);
 goto str;
 }
closegraph();
restorecrtmode();
}


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.