Solved

making a vb program start up on windows start up.

Posted on 1998-07-26
7
205 Views
Last Modified: 2010-05-03
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
Comment
Question by:jmharr
7 Comments
 

Author Comment

by:jmharr
ID: 1466766
oh also, it needs to disable the ctrl + alt + del keys and alt + tab or any of the other key liek that

0
 
LVL 4

Expert Comment

by:trkcorp
ID: 1466767
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
 

Expert Comment

by:stx
ID: 1466768
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:jmharr
ID: 1466769
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
 

Accepted Solution

by:
wsanchez earned 90 total points
ID: 1466770
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
 
LVL 39

Expert Comment

by:abel
ID: 1466771
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
 
LVL 39

Expert Comment

by:abel
ID: 1466772
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now