I have been trying to make a file locking program in windows using Code::Blocks. With to many errors popping in my original code, I decided to copy it from a youtube tutoria