Using C/C++, write something on a sector of CD, then marking as Bad sector. Possible?



I am working on a crucial application (eg, APP.EXE) and this I will distribute to my client(s). But it is possible that he may generate duplicate CD’s and sale-out.

I am trying for a programming-based solution in C/C++, so that I can write some information (may be a KEY) on a specific Sector of that CD. Then copying APP.EXE on CD and then marking that particular sector BAD (Somehow). This Bad sector will be searched by APP.EXE during execution at client system and verify the same key there.

I think on making duplicate copies of that CD, the information will not be copied.

But my first task is to “Write data on a sector of CD and mark it as bad”

Looking for any guy who can help me in this.

Take care.


You might be better to ask your question here:

Hello Andareed,

Thanks for your quick response. I will go to this URL.


You just violated one of our forum rules…crossposting.
You could have asked a mod to move the thread, instead of posting it again in another forum (something you already did before this one).

Closing all others.

Please respect CD Freaks by respecting our rules, we have them for a reason!