Oh yea the joy of frying OS because of screwing freshly minted GINA.DLL. If you don't know what you doing, I won't suggest you write GINA dll. I did not more than a decade ago and trust me, while it is not terribly hard, but if you screw up, the machine is locked. you won't be able to login, period.
Besides GINA is only for windows XP and earlier, I think the machines is a bit different for Vista and newer. Again I have not seen in this area for 10+ years.
If you want to take the hike see
http://technet.microsoft.com/en-us/library/bb742447.aspx[
^]
for vista and beyond
http://msdn.microsoft.com/en-us/magazine/cc163489.aspx[
^]