Solved

Logon

Posted on 2000-05-17
2
199 Views
Last Modified: 2010-04-02
I am on NT4.0 workstation. I have logged on using my account which has restricted access on resources on a certain machine. I want to access the same machine programmatically while logged on to my account such that I have access to all the file-resources (as if the software was having Administrator privileges on that machine) in the remote machine. Is this possible at all? If so how?
0
Comment
Question by:arvind_cs
2 Comments
 
LVL 4

Accepted Solution

by:
pellep earned 100 total points
ID: 2817277
Use the API functions:
LogonUser() (creates an access-token of the desired user) and
ImpersonateLoggedOnUser() (using the access-token form LogonUser sets the userpriveliges for the calling process)

Check MSDN for details
0
 

Author Comment

by:arvind_cs
ID: 2817858
Thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

747 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

12 Experts available now in Live!

Get 1:1 Help Now