Click here to Skip to main content
15,917,608 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Whats wrong with this....... Pin
Dave Kreskowiak19-Sep-05 9:17
mveDave Kreskowiak19-Sep-05 9:17 
AnswerRe: Whats wrong with this....... Pin
Christian Graus19-Sep-05 11:47
protectorChristian Graus19-Sep-05 11:47 
AnswerRe: Whats wrong with this....... Pin
Gopi.V19-Sep-05 22:23
Gopi.V19-Sep-05 22:23 
QuestionCommon Dialogs and Office 2003 Pin
john john mackey19-Sep-05 7:35
john john mackey19-Sep-05 7:35 
QuestionProcedure or function UpdateAllRecords has too many arguments specified. Pin
mcgann19-Sep-05 6:10
mcgann19-Sep-05 6:10 
AnswerRe: Procedure or function UpdateAllRecords has too many arguments specified. Pin
KaptinKrunch19-Sep-05 7:35
KaptinKrunch19-Sep-05 7:35 
Questionsomebody help me! Pin
Gulfraz Khan19-Sep-05 5:56
Gulfraz Khan19-Sep-05 5:56 
AnswerRe: somebody help me! Pin
Dave Kreskowiak19-Sep-05 7:56
mveDave Kreskowiak19-Sep-05 7:56 
An application can't get security higher than the person who ran it.

In order for this to work, your application must be executed, from the very start, using different credentials.

This means either...

1) Holding down Shift while you right-click the icon for the app and clicking "Run As", then supplying the credentials.

2) Using the RunAs command line app to launch your application. but since the username and password would be plainly visible, this isn't the best option.

3) Writing your own launcher application that can launch your application using a username and password. You'll have to use the CreateProcessAsUser[^] Win32 API function to launch your application. The downside to this is how are you going to store the username and password so your launcher app can get to it? If your machines are in a workgroup environment, is this username and password the same on all machines? If so, you've got issues.

Now, noone of these options are the best one. Since the application will be running under a common account, you can't tell who's really doing what with that account. It's a generic that is difficult to administer, and that is a big security concern.

You'd be much better off expanding the rights of the people using the application than you would using the RunAs service.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: somebody help me! Pin
Gulfraz Khan20-Sep-05 2:45
Gulfraz Khan20-Sep-05 2:45 
GeneralRe: somebody help me! Pin
Dave Kreskowiak20-Sep-05 11:24
mveDave Kreskowiak20-Sep-05 11:24 
QuestionCarriage Return Pin
directred19-Sep-05 3:20
directred19-Sep-05 3:20 
AnswerRe: Carriage Return Pin
KaptinKrunch19-Sep-05 3:37
KaptinKrunch19-Sep-05 3:37 
AnswerRe: Carriage Return Pin
Dave Kreskowiak19-Sep-05 5:34
mveDave Kreskowiak19-Sep-05 5:34 
QuestionApp.config File Pin
risepop19-Sep-05 1:55
risepop19-Sep-05 1:55 
AnswerRe: App.config File Pin
Dave Kreskowiak19-Sep-05 5:32
mveDave Kreskowiak19-Sep-05 5:32 
QuestionComboBox - TextBox Pin
Zealot34518-Sep-05 23:37
Zealot34518-Sep-05 23:37 
AnswerRe: ComboBox - TextBox Pin
Briga18-Sep-05 23:56
Briga18-Sep-05 23:56 
GeneralRe: ComboBox - TextBox Pin
Zealot34519-Sep-05 22:27
Zealot34519-Sep-05 22:27 
Questionhow to export a dataset into excel files using vb.net? Pin
kcdeleon18-Sep-05 23:04
kcdeleon18-Sep-05 23:04 
AnswerRe: how to export a dataset into excel files using vb.net? Pin
seee sharp19-Sep-05 0:11
seee sharp19-Sep-05 0:11 
GeneralRe: how to export a dataset into excel files using vb.net? Pin
kcdeleon19-Sep-05 13:58
kcdeleon19-Sep-05 13:58 
QuestionExcel controlled by VB application runs too slow Pin
TheKriminal18-Sep-05 22:11
TheKriminal18-Sep-05 22:11 
AnswerRe: Excel controlled by VB application runs too slow Pin
quacks_a_lot20-Sep-05 14:41
quacks_a_lot20-Sep-05 14:41 
GeneralRe: Excel controlled by VB application runs too slow Pin
TheKriminal21-Sep-05 21:48
TheKriminal21-Sep-05 21:48 
QuestionTrack Files Copying Out Of PC Pin
tslu18-Sep-05 21:56
tslu18-Sep-05 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.