I would like to Know the Best Books that can teach how to protect the softwares. in other words how by writing C/C++ WinAPI32 I can protect my program.

I see some programs are using dongles /HASP/KeyLock
and others using a serial Numbers ..

But I can not find the basics of these Issues.

So I hope , to get some Books - to Be Simple not complex to explain all these concepts.

I expect some books to be same as Charlez Petzold that Expalin the GUI for Win32API programming.