I am writing a personal program and it has a password for it. I disabled the exit button in the top right corner but someone can still close it by right clicking the program on the task bar and clicking 'close window'. So I am asking how do I make the close window option not active. I know it is possible because when I had Norton security it wouldn't let me close it.
You can use the GetSystemMenu Win API function to retrieve the system menu and then you could use the RemoveMenu function to remove the menu item (or you could use ModifyMenu passing in the appropriate flags to disable the menu item).