(Gast)
n/a Beiträge
|
Re: Daten aus der Registry lesen mit TService
13. Apr 2007, 16:46
Delphi-Quellcode:
function ConvertSidToStringSidW(Sid: PSID; var StringSid: PWideChar): BOOL; stdcall; external 'Advapi32.dll';
function SIDToStr(SID: PSID): WideString;
var
lpcsSid: PWideChar;
begin
Result := 'Error';
if(ConvertSidToStringSidW(SID, lpcsSid))
try
Result := WideString(lpcsSid);
finally
LocalFree(lpcsSid);
end;
end;
|
|
Zitat
|