Solved

Logon

Posted on 2000-05-17
2
202 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lambda for random numbers problem 7 119
C++ dll will not run on machine without VS installed 10 89
Move constructor only called if marked noexcept? 6 109
Unable to start eclipse ? 17 154
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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.

821 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