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

Вызов ConvertStringSecurityDescriptorToSecurityDescriptor   Найти похожие ветки 

← →
новичок2   (2007-05-22 09:54) [0]

Добрый день!
Подскажите, как правильно вызвать эту функцию! У меня всегда возвращает ERROR_INVALID_PARAMETER (GetLastError = 87)


← →
Rouse_ ©   (2007-05-22 10:15) [1]

А ты как ее вызываешь?


← →
новичок2   (2007-05-22 10:21) [2]

Вообще хотелось бы сделать аналогию: 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));
...


← →
новичок2   (2007-05-22 11:48) [3]

никто не знает?


← →
Rouse_ ©   (2007-05-22 12:16) [4]

Поиск знает:
http://www.koders.com/default.aspx?s=ConvertStringSecurityDescriptorToSecurityDescriptor&btn=Search&la =Delphi&li=*


← →
новичок2   (2007-05-22 12:39) [5]

>Rouse_
Спасибо! Все заработало!



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

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



Память: 0.45 MB
Время: 0.017 c
15-1193727308
Garik888
2007-10-30 09:55
2007.12.02
Компонент для печати


4-1179242016
Calibr
2007-05-15 19:13
2007.12.02
Реестр


2-1194595850
pathfinder
2007-11-09 11:10
2007.12.02
EExternalException..


15-1194249314
Галинка
2007-11-05 10:55
2007.12.02
Указатель на функцию в Си


2-1194595298
lobach
2007-11-09 11:01
2007.12.02
Обработка ошибки




   Наверх