I currently have a program in the PC. I want to be able to take in the username and password when he login to the PC and check if he is able to access my program. Only administrator is able to access it so I want to prevent people with user domain from running my program.

How can I do it.
Please provide some sample codes if possible.
Thanks