Hi, I implemented this code and call the function with Dir2 := ReadRegEntry('SOFTWARE\DBTFICIO\ProvaIsapi', 'Directory');
function ReadRegEntry(strSubKey,strValueName: string): string;
var
Key: HKey;
Buffer: array[0..1023] of char;
Size: cardinal;
begin
Result := 'ERROR';
Size := SizeOf(Buffer);
If RegOpenKeyEx(HKEY_LOCAL_MACHINE, PChar(strSubKey),0,KEY_READ,Key) = ERROR_SUCCESS Then
if RegQueryValueEx(Key,PChar(strValueName),nil,nil, @Buffer,@Size) = ERROR_SUCCESS then
Result := Buffer;
RegCloseKey(Key);
end;
The user is both IIS_Iusrs and Iusr.
Help me😓
Thank you