Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

making a vb program start up on windows start up.

i want my program to start up when windows starts up, and not let the user do anything thing with windows until the right password is entered. how can i do that?
0
jmharr
Asked:
jmharr
1 Solution
 
jmharrAuthor Commented:
oh also, it needs to disable the ctrl + alt + del keys and alt + tab or any of the other key liek that

0
 
trkcorpCommented:
I am adding this comment because I want to see the answer and because I can't fully address the question... As for the Password part of your question, jmharr, it sounds like you want to create a dedicated PC that runs only your program.  If this is the case and you are on a fairly new release of Win 95 or better then I would enable the Users option on the system to force a User ID & Password. (You will have a users icon on your control panel if this is so.) Then you could use this API: ... Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long ... to get the UserID from within your program for security purposes.  To start your program automatically upon boot place a shortcut to it in the StartUp folder located within your Program folder... As for the rest of your question, I want to see the answer(s).

0
 
stxCommented:
jmharr, a commonly overlooked aspect of windows is the win.ini
file.  Windows uses this for load information, adding several strings (i.e.:  run="c:\vb\jhmarr\pass.exe")
this could load your program.  And if the correct password is given to the program then it could allow the remaining loading of windows.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
jmharrAuthor Commented:
will that start up when windows does, and not load the shell (explorer.exe) until the password is right? I also need to know how to make a form display when ctrl + alt + del is pressed and the same with alt + tab
0
 
wsanchezCommented:
I'm not sure if windows will not continue loading while the password is not correct but you could "trap" ctrl+alt+del and alt+tab by intercepting it in the Form_keyPress. Use KeyAscii to do this.
0
 
abelCommented:
Hi jmharr,

Lookup RunOnce in the registry. These programs are run BEFORE any other program loads! But when started, you'll have to put it in there again (it gets automatically deleted).
Ctrl-Alt-Del can be trapped. Lookup http://www.experts-exchange.com/topics/comp/lang/visualbasic/Q.10067913.
Alt-Tab can be intercepted by using either form_lostfocus or form_keydown.

Regards, Abel
0
 
abelCommented:
More advanced is using the "Shell=explorer.exe" from the "[boot]" section of system.ini. Replacing that with your program will prevent explorer.exe to load and additionally it will prevent other apps to load. When your program exits, you should call explorer.exe to get the normal window-behaviour.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now