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

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

Наверх




Память: 0.47 MB
Время: 0.025 c
2-1194459961
OP
2007-11-07 21:26
2007.12.02
Как присвоить событие, только что созданному объекту?


15-1194343048
wander
2007-11-06 12:57
2007.12.02
lazarus


3-1184426535
__alex
2007-07-14 19:22
2007.12.02
Про BDE4 и BDE5


15-1193050046
Студент
2007-10-22 14:47
2007.12.02
Как жить?


4-1172864916
DevilDevil
2007-03-02 22:48
2007.12.02
Стек: