tag:blogger.com,1999:blog-16934095.post113310356149027610..comments2009-07-11T01:09:21.699-04:00Comments on BPsoftware.com Blog: Delphi® and GetExplicitEntriesFromAclBrad Prendergastnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-16934095.post-1152399972337880032006-07-08T19:06:00.000-04:002006-07-08T19:06:00.000-04:00I use BDS2005 and BDS2006. For this example listo...I use BDS2005 and BDS2006. For this example listofexplicitentries can be omitted; I used it for something else I was working on and it was left in when I pulled it out.Brad Prendergasthttp://www.blogger.com/profile/07049229377490825458noreply@blogger.comtag:blogger.com,1999:blog-16934095.post-1152089303314581252006-07-05T04:48:00.000-04:002006-07-05T04:48:00.000-04:00which version of delphi did you use to test this c...which version of delphi did you use to test this code? it does not work on delphi 7 because length(ealist) is only 1 and it tries to write to ealist(1).<BR/><BR/>also, what is listofexplicitentries for except using memory?<BR/><BR/>regardsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16934095.post-1148078365213989022006-05-19T18:39:00.000-04:002006-05-19T18:39:00.000-04:00Thanks for posting this -- very helpful. I wish t...Thanks for posting this -- very helpful. I wish there was more reources availble for integrating this COM object into Delphi! Your post here was useful though -- the most useful thing I've found yet... so THANKS for that...Casshttp://www.ThoughtsOnThinking.comnoreply@blogger.comtag:blogger.com,1999:blog-16934095.post-1142533506598253192006-03-16T13:25:00.000-05:002006-03-16T13:25:00.000-05:00I use:function GetName(OwnerSID: PSID):String;varO...I use:<BR/>function GetName(OwnerSID: PSID):String;<BR/>var<BR/>OwnerName, DomainName: Array[0..100] of Char;<BR/>cbSize: DWORD;<BR/>OwnerType: SID_NAME_USE;<BR/>begin<BR/> cbSize := SizeOf(OwnerName);<BR/> if not LookupAccountSID(nil, OwnerSID, OwnerName,<BR/> cbSize, DomainName, cbSize, OwnerType) then<BR/> result:= SIDToStr(OwnerSID)<BR/> else<BR/> result:= Format('%s\%s',[Brad Prendergasthttp://www.blogger.com/profile/07049229377490825458noreply@blogger.comtag:blogger.com,1999:blog-16934095.post-1142531873914266652006-03-16T12:57:00.000-05:002006-03-16T12:57:00.000-05:00verry good!But how do you get the name of the trus...verry good!<BR/>But how do you get the name of the trustee? Where is the function getname declared?Anonymousnoreply@blogger.com