Re[2]: Как создать thread от имени другого пользователя?
От: apostarn  
Дата: 11.04.05 18:48
Оценка:
Здравствуйте, Valery A. Boronin, Вы писали:

VAB>Здравствуйте, apostarn, Вы писали:


A>>Из процесса, запущенного пользователем А требуется запустить thread от имени пользователя Б. Как это сделать?

A>>Нашел только примеры запуска _процесса_ от имени другого пользователя, а про _thread_ нигде нету

VAB>махну рукой в направлении:


VAB>

Platform SDK: Security
VAB>Client Impersonation

VAB>Impersonation is the ability of a thread to execute using different security information than the process that owns the thread. Typically, a thread in a server application impersonates a client. This allows the server thread to act on behalf of that client to access objects on the server or validate access to the client's own objects.


VAB>The Microsoft® Windows® API provides the following functions to begin an impersonation:

VAB>A DDE server application can call the DdeImpersonateClient function to impersonate a client.
VAB>A named-pipe server can call the ImpersonateNamedPipeClient function.
VAB>You can call the ImpersonateLoggedOnUser function to impersonate the security context of a logged-on user's access tokVAB>


Спасибо. Разбираюсь
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.