Thx for everyone's help here if the final source code if any1 wants it.
Code:
#include <stdio.h>
#include <conio.h>
#include <windows.h>
char * Drive[32];
int bleh = 0;
int main()
{
/* In case the ALT ENTER doe not work, it will still be basically fullscreen but nit as good as the ALT ENTER */
HANDLE hConsole;
COORD size;
HWND hWnd;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
size = GetLargestConsoleWindowSize(hConsole);
SetConsoleScreenBufferSize(hConsole,size);
SetConsoleTitle("Poojah");
hWnd = FindWindow(NULL,"Poojah");
ShowWindow(hWnd,SW_MAXIMIZE);
system("pause");
fullscreen();
int count = 0;
/* Feel free to change the name cause this is a simple
program and it did not take much skill to make */
printf("Hack-me-please by Justin Greene \n");
printf("When there is a pause just press SPACE\n");
getch();
printf("Searching for main drive...\n");
system("dir a: 1>nul 2>nul");
getch();
printf("Main drive not found.\n Please input main drive: ");
scanf("%s", &Drive);
if(strcmp(Drive, "bleh")==0)
{
die();
}
printf("\n Deleting drive...\n");
system("dir a: 1>nul 2>nul");
getch();
printf("Drive %s not found. Searching for drive...\n", Drive);
system("dir a: 1>nul 2>nul");
printf("Drive found as C: \n");
printf("Deleting contents... \n");
getch();
printf("Drive deleted. Have a nice day!\n");
getch();
while(count <= 100)
{
printf("%s", Drive);
}
return 0;
}
/* Just a thing if they type BLEH */
int die()
{
while(bleh == 0)
{
printf("Error\n No Operating System detected!\n\a");
getch();
}
}
/* Here is how to get fullscreen. It basically makes you press ALT ENTER */
int fullscreen()
{
keybd_event(VK_MENU,0x38,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
return 0;
}
The only bug is it says that there is a problem with the strcmp thing but it seems to work fine when you run it. Other than that it is all good.