Re: How to create an all-user writable file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Here you can find definitions of Windows API converted to Delphi
http://www.delphi-jedi.org/APILIBRARY:299920

(assuming the "pascal" of the OP is Delphi or compatible )

--PA


"Vladimir Scherbina" <vladimir.scherbina@on_gmail_com> wrote in message news:%23mndqlm%23GHA.3256@xxxxxxxxxxxxxxxxxxxxxxx
Jan,

Estimate the time you will spend to invoking API functions from Pascal plus converting structures. It might take a more time
then rewriting the task in pure C or C++. Also you should realize that 9x is already not supported. Why do you need to write
software for it?

--
Vladimir

"Jan Bruns" <testzugang_janbruns@xxxxxxxx> wrote in message news:45430faf$0$5720$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

"anton bassov":

What is an easy way to have a process create a file,
having r/w-access for anyone and del-access for owner+admins?

There is only one way to do what you want - it is neither "easy" nor
"complex", but, instead, just absolutely normal way of granting access
rights under Windows NT. It lies with
getting the target file's ACL with GetSecurityInfo(), adjusting it in a
way that suits your objectives, and then passing ACL to
SetSecurityInfo()

That sound like pretty much work just to make a single Textfile
user-writable.

Besides above mentioned functions, I would advise you to check
SetEntriesInAcl(), as well as at EXPLICIT_ACCESS structure, in MSDN
documentation

Seems like I wouldn't have to deal with C-specific Objects, just plain
functions. Maybe "h2pas.exe" can do the conversion for me.

I don't have the NT-headers available (Pascal-compiler),

Well, I just don't know what to say to that.......

and the Program should run on win98/Me-systems, too.

Windows9x systems don't seem to support access control functions, do
they???? Therefore, I would say that, under Windows9x, your task is
just infeasible

Hmn, with win9X there's only one admin=user, so the job is already
done there.
But I'd need to dynlink these NT-functions. Again some more work,
just to see a user-writable Textfile.

Gruss

Jan Bruns




.



Relevant Pages

  • Newbie question: Pascal-Delphi
    ... that my old programs are incompatible with Windows 98 and XP. ... Is there a way of importing or converting my old codes into DELPHI? ... Is there a way of importing or converting my old QBasic programs into Visual ...
    (comp.lang.pascal.delphi.misc)
  • Re: Convert QT to Delphi - I dont know if this is possible or not
    ... What is the point of converting it to Delphi? ... designer and on windows it all integrates into VC. ... Or should I go for FPC? ...
    (borland.public.delphi.non-technical)
  • Re: Borlands linux strategy ?
    ... What would be so awful for Borland, as a company, from a strategic perspective, to start a new product line that targets non-asp.net, non-windows development? ... My point is that if you try to port Delphi, and what makes Delphi Delphi, to another development platform, it will fail. ... This is the main point of my argument for why Delphi is and should remain a Windows development tool. ... It's hard for a software vendor to make any money from dev tools alone, especially in the ISV market. ...
    (borland.public.delphi.non-technical)
  • Re: Borlands linux strategy ?
    ... Sorry, it's the general mentality of Borland, and reinforced by users who ... believe that Delphi should just remain a windows platform tool. ...
    (borland.public.delphi.non-technical)
  • Re: A cross-platform vision for Delphi
    ... Delphi IDE is simple: sometime the builds are so good, I mean SO GOOD, ... a tool that limits yourself to a 32-bit Windows platform. ... Great machine to install a modern Linux desktop. ... Now I credit Codegear ...
    (borland.public.delphi.non-technical)