![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Вызов ConvertStringSecurityDescriptorToSecurityDescriptor [D7, WinXP]
новичок2 © (2007-05-22 09:54:00)Добрый день!
Подскажите, как правильно вызвать эту функцию! У меня всегда возвращает ERROR_INVALID_PARAMETER (GetLastError = 87)
новичок2 (2007-05-22 12:39:00) [1]>Rouse_
Спасибо! Все заработало!
Rouse_ (2007-05-22 12:16:00) [2]Поиск знает:
http://www.koders.com/default.aspx?s=ConvertStringSecurityDescriptorToSecurityDescriptor&btn=Search&la=Delphi&li=*
новичок2 (2007-05-22 11:48:00) [3]никто не знает?
новичок2 (2007-05-22 10:21:00) [4]Вообще хотелось бы сделать аналогию: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1110280&SiteID=1
...
function ConvertStringSecurityDescriptorToSecurityDescriptorW(StringSecurityDescriptor: PChar; StringSDRevision: DWORD; SecurityDescriptor: PSECURITY_DESCRIPTOR; SecurityDescriptorSize: PULONG): Bool; stdcall; external 'advapi32.dll' name 'ConvertStringSecurityDescriptorToSecurityDescriptorW';
...
const
SDDL_REVISION_1 = 1;
LOW_INTEGRITY_SDDL_SACL = 'S:(ML;;NW;;;LW)';
...
if not ConvertStringSecurityDescriptorToSecurityDescriptorW(LOW_INTEGRITY_SDDL_SACL, SDDL_REVISION_1, pSD, nil) then ShowMessage(IntToStr(GetLastError));
...
Rouse_ (2007-05-22 10:15:00) [5]А ты как ее вызываешь?