If you knew some simple debugging or error checking then you would know what was going wrong (or at least where).

I think that you are a skriptkiddie writing a trojan because you don't seem to understand the code you have.

The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.

How did you get this far? Gets hard when the code you don't understand is not working.

Read up on debugging. That is watching the values your code generates as it runs.
When you find the one that failed you can find out why.
Look up GetLastError(), my bet is it will be error 87.

PS We know what the error is, we are just not telling you.

The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.

Anybody writing that code for any legitimate purpose would know how to debug and solve the problem. There are only a couple of reasons to be opening an executable with write access, and anybody with the cajones to write one of those programs can figure out how to see the value of a DWORD data type.

If you really want to be the cool hacker that you're trying to be, stop goofing around with code you don't understand and starting studying the language seriously. Grab a copy of Kernighan & Ritchie, a free compiler, and start working through the book. Or sign up for classes at the local community college.

Don't try to tell us that you understand what the program does when it's clear you don't even understand the language that it's written in. If you're serious about what you're up to, take the steps necessary to get the knowledge and skills you'll need. Programming isn't something you pick up on a weekend after reading some code. It's going to take a lot of work, some real dedication, and a serious love of programming. C and C++ are non-trivial languages, and you need to do a lot of work before you're ready to be an elite hacker.

Firstly, I am not a hacker. Secondly, I am not trying to act pro. It's just that I have a dateline to meet and I have tried all possible solutions before I posted my problem here. If I know what is the problem, I would have solved it long ago. So if you could help, please help. You could at least give me some tips on my problem. Thank You very much!