en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en fr en en en en nl en en en en en en de it en en en en nl en en en en en en en it en en en en en en en en en en en nl en en en en en en en it en en en en en en en nl en en en en en en en en en en en sv en en it en en en en en en en nl en en en en en en en en ru en en fr en en en en nl en en en en en en en en en en en en nl vi en en en it en en en en de en en en fr en en en en en en en en en pt en en en en en en
By logging into your account, you agree to our Privacy Policy, personal data processing and storage practices as described therein.
Forgot password or user name?
Search in titles only Search in PowerBASIC for Windows only
You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
All Time Today Last Week Last Month
All Discussions only Photos only Videos only Links only Polls only Events only
Lazy to search ... Somebody has a sample howto set administrator rights for own process ? (to install a driver)
Join Date: Aug 1998
16 Aug 2001, 08:38 PM
I'm not sure that you can do that. I'm about 99% sure you cannot.
If you could, then any trojan writer would be able to write a trojan to do something like that....
any one else? I'm pretty sure but I could be wrong...
True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi
Join Date: Sep 2000
16 Aug 2001, 09:57 PM
CreateProcessAsUser and/or CreateProcessWithLogon ?
Google seemed fruitful with a search for: "Visual Basic" CreatProcessAsUser http://www.google.com/search?q=%22Vi...eProcessAsUser
[This message has been edited by Wayne Diamond (edited August 16, 2001).]
Join Date: Sep 2000
16 Aug 2001, 10:01 PM
Something else i found on a forum:
Re : CreateProcessAsUser API
Using these APIs is not really practical from an application - they're really meant to be used by services. It can be done, though.
First, you must be using windows NT. Secondly the originating user must have the "Act as part of the operating system" right set in their policy (it's an advanced setting, so you have to click on the checkbox to see it).
Once this is done you can log an alternative user onto the system using LogonUser:
Dim rv As Long, hToken As Long rv = LogonUser("administrator", vbNullString, "adminpw", LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, hToken)
This returns a user token in the hToken variable. You can then use this value to impersonate the user you just logged on, or to create processes as if they had run them. E.g.
It should be noted that although this *can* be done it is not recommended from a security viewpoint. The standard way of doing this kind of thing is to have a service that handles any kind of user impersonation for you and that accepts messages from your application.
Join Date: Apr 2000
17 Aug 2001, 12:33 AM
Originally posted by Scott Turchin:
I'm not sure that you can do that. I'm about 99% sure you cannot.
If you're using W2K (and I seem to remember you do), type RUNAS /? at a command prompt and see for yourself.
Join Date: Sep 1999
17 Aug 2001, 05:42 AM
LogonUser requires name & password. How to retrieve them on "uknown PC" ? (note, with restricted privilegs)
Join Date: Sep 2000
17 Aug 2001, 10:41 PM
You mean other than a dialog window asking for user input? No idea sorry :/ (are you sure that's even possible if you dont have a login password? being Admin and all... )
Copyright © 1998-2022 PowerBASIC Tools, LLC - All Rights Reserved.
Powered by vBulletin® Version 5.7.0
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
All times are GMT-5. This page was generated at 09:15 PM.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.