Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading NT/win2k security permissions from delphi

Status
Not open for further replies.

ecynaxt

Programmer
Joined
Mar 20, 2002
Messages
11
Location
GB
Do any of you know how you can find out what NT/win2k security permissions are set on a file for the logged in user.

At the moment I am testing if a file is 'read-only' before opening it but if the NT/win2k 'read' permission or 'write' permission has been removed I get an error.

Does it involve some delving into a windows dll to find out the permissions or is there some code/component out there to do it.

Any help much appreciated.

ECYNAXT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top