Jump to content

Diable windows Start button


Recommended Posts

...ma ciao!

Does anybody know how to disable the windows START button with labview?

I call the user32.dll and I can disable the systray but i could not diable the START button.

I'd like to disable this button even from the keyboard button.

Do you need to disable it for your program and then re-enable it after your program is done? If so, this wouldn't work, but you can look at it:

http://www.winguides.com/registry/display.php/905/

Link to comment
I need to disable it to avoid people to use the other windows application... :(

Lucky you. You'll need a low-level keyboard hook since there's no pre-canned way to do it in Windows. That basically means writing your own DLL and exporting the functions you'll need to disable it. Or finding someone else's if you can.

Here's a good reference, search for 'hook'

http://msdn.microsoft.com/msdnmag/issues/0...qa/default.aspx

Link to comment

I have done something similar to this in the past. My goal was to not allow the operator to access anything other then the application I built. The solution I used was to replace the Window's user interface with the LV EXE that I generated. Following is an email from someone at NI that explains how to do this.

<Start Forward>

The following are the steps for creating a custom user interface in Windows 2000 or XP. Make sure not to do this with the Administrator account, as it can be a bit complicated to get back to the normal Windows user interface (explorer.exe). It is also a good idea to have something in your custom .exe file to shut down the computer programmatically.

1. Create account for the user (or access a existing user account) and log in as this user.

2. Click Start , and then click Run .

3. In the Open box, type gpedit.msc , and then click OK .

4. Expand User Configuration , expand Administrative Templates , and then expand System .

5. In the right pane, double-click 'Custom user interface'

6. Click Enabled , and then in the Interface file name enter the application you wish to run (e.g C:\Program Files\National Instruments\Labview 6.1.exe)

7. Click Apply , click OK , and then click OK .

8. Restart the computer.

Remember, if you do get stuck, you can still access the Windows Task Manager with Ctrl+Alt+Del and run explorer.exe from there.

<End Forward>

I found that for this to be effective three additional things need to be done

1) Allow the operator to exit from the built LV EXE. There is a VI available from NI for doing this at:

http://sine.ni.com/apps/we/niepd_web_displ...034080020E74861

2) Allow the operator to start the native Window's user interface. This functionality should probably be password protected. This can be done by passing this string "explorer.exe" to the "System Exec+.vi" VI also included in the above mention download

3) Disable the "New Task..." option from the task manager. If you search on the internet you should be able to find various methods for doing this.

Hope this helps

Denis

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.