Does anyone have any ideas how you could create a password system that locks the computer if a password is typed incorrectly etc. It would be good if the program could load before the OS.

What type of header files would be needed, etc. Thanks