Вниз
Скачать: CL | DM;

не работает logonuser   Найти похожие ветки 

 
veresk ©   (2003-10-11 01:17) [0]

if LogonUser("123","192.168.0.3","123",LOGON32_LOGON_NETWORK,LOGON32_PROVIDER_DEFAULT,PH) then
begin
if ImpersonateLoggedOnUser(PH) then ShowMessage ("ImpersonateLoggedOnUser done")
else ShowMessage("ImpersonateLoggedOnUser Error");
end;

т.е. я обращаюсь к компу в локалке, а эта штука не хочет даже выполнить impersonateloggedonuser;
локалка: точка - точка
пробовал и по имени компа (вместо "192.168.0.3" делал "lion"


 
Rouse_ ©   (2003-10-11 02:03) [1]

Читаем внимательно выдержку из MSDN:

The LogonUser function attempts to log a user on to the local computer, that is, to the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer. You specify the user with a user name and domain, and authenticate the user with a clear-text password.

Желаю успехов


 
veresk ©   (2003-10-11 02:14) [2]

понятно , как же тогда быть?



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.004 c
6-11655
Yrtimd
2003-10-09 02:43
2003.12.04
Терминатор Интернет-соединения


6-11652
undersun
2003-10-07 12:36
2003.12.04
Подсчёт трафика


6-11662
Son!K
2003-10-07 21:14
2003.12.04
прокси


6-11668
DenKop
2003-10-07 16:00
2003.12.04
Как подставить куки к посылаемому post запросу


4-11725
DmitryIPAC
2003-10-06 13:55
2003.12.04
Помогите




   Наверх