1) When I create kernel driver . New > Project > kernel driver  ==> I cant compile it, it says "ntddk.h not found" but when I look in incrudes folder I see that there is ntddk.h, now I have question: why Code::Blocks cant find include file that is  in includes folder? 
2) why exit(0); dont work with Code::blocks?
Here is my code.Actually I copied it...
/* copy.c written by detour@metalshell.com
 *
 * Very simple method to copy a file.
 *
 * http://www.metalshell.com/
 *
 */
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
void pHelp(char *me) {
  fprintf(stdout, "Usage: %s <srcfile> <destfile>\n", me);
  exit(0);
}
int main(int argc, char *argv[]) {
  int inF, ouF;
  char line[512];
  int bytes;
  if(argc < 3)
    pHelp(argv[0]);
  if((inF = open(argv[1], O_RDONLY)) == -1) {
    perror("open");
    exit(-1);
  }
  if((ouF = open(argv[2], O_WRONLY | O_CREAT)) == -1) {
    perror("open");
    exit(-1);
  }
  while((bytes = read(inF, line, sizeof(line))) > 0)
    write(ouF, line, bytes);
  close(inF);
  close(ouF);
}