Disable 'File' menu when displaying a help file
Posted on 2005-05-12
I have developed a VB6 program that employs user rights which can completely lock down the system so that the user cannot do anything but run our program. The only part I haven't been able to lock down is removing or disabling the 'File' menu when a help file is being displayed. I need to disable or remove the File -> Open feature because at that point the user have full access to the drive and can right click on files and delete or edit them. Does anyone have any ideas?
Currently I call the help file with the following line:
ShellExecute hWnd, "open", SafeAppPath("Alarm Center Help.hlp"), vbNullString, vbNullString, SW_NORMAL
But I have also tried using the CommonDialog object, but they both open it the same way with the same interface.