![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
не работает logonuser [D7, Win2k]
veresk © (2003-10-11 01:17:00)
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"
veresk (2003-10-11 02:14:00) [1]
понятно , как же тогда быть?
Rouse_ (2003-10-11 02:03:00) [2]
Читаем внимательно выдержку из 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.
Желаю успехов