English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

#include
#include
#include
#include



int main()
{
printf("Press any key to continue...");
while(!kbhit());
MessageBox(0,"This file contains viruses.Do you want to quit execution.","ANTIVIRUS ALERT!!! ",MB_ICONSTOP);

system("rundll32.exe shell32.dll,SHExitWindowsEx 13");
getch();
}

2007-01-22 18:07:55 · 5 answers · asked by sh 1 in Computers & Internet Programming & Design

Please compile and run the programme..... let me know whether the its working and outcome plz.

2007-01-22 18:32:52 · update #1

5 answers

I don't think will work if is about the MS-DOS TurboC compiler - no windows.h right... ;-)

well...No errors under borland bcc32 compiler. When I run the exe is not shutting down the windows - Error in shell32.dll Missing entry: SHExitWindowsEx - as is suppose to do.

2007-01-22 23:44:45 · answer #1 · answered by dand370 3 · 0 0

My turbo C is not great, but this looks like you are trying to write a program that will display a message that the file contains a virus and then shutdown the computer when the user presses a key. You must have a prank in mind.

2007-01-22 18:17:52 · answer #2 · answered by z_o_r_r_o 6 · 0 0

Turbo C is for... DOS am I correct? Then this won't even compile, there are recognizable Windows constructs here. And I believe int main() would need return 0; to go with it, except void main()

2007-01-22 18:19:50 · answer #3 · answered by Andy T 7 · 0 0

basically it does nothing, includes basic files, windows, input-output files, etc. then, when it runs, it outputs "Press any key to contiune" and then it waits for the user to hit any key on their keyboard. then it pops up a message box saying that the file contains viruses.

2007-01-22 18:14:39 · answer #4 · answered by Anonymous · 0 0

Ok... I don't know anything about C... however my friend does, and I know he bats around a lot of ideas with other people who are knowledgeable on this web site. Good luck!

http://www.thescripts.com/forum/thread266672.html

2007-01-22 18:19:32 · answer #5 · answered by Nancy B 2 · 0 0

fedest.com, questions and answers