Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.12.04;
Скачать: 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 вся ветка

Текущий архив: 2003.12.04;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.009 c
8-11616
cyberwolf
2003-07-21 23:41
2003.12.04
Получение MP3-тэгов


14-11700
Думкин
2003-11-13 04:53
2003.12.04
С днем рождения! 13 ноября.


6-11653
TUser
2003-10-09 10:15
2003.12.04
FastNet


6-11659
Cosmic
2003-10-08 18:55
2003.12.04
Хотелось бы примерчик HTTP-сервера...


11-11598
alfromorel
2003-03-19 08:25
2003.12.04
Как определить Pcontrol по hwnd