How to open a files properties/security window?

fsX

Member
Joined
Jul 8, 2004
Messages
20
Hello all,
Anyone know how to open the security window on a file?
Thats when you right click on a file and select Properties/Security...

Im trying to do this using C# and I cant find any references.... :confused: :confused: :confused:
Thx,
fsX
 
Thanks for your relpy, but Im looking for the security properties window... That thread might not get there...
fsX
 
I gave it a try and this API wont do the trick...
You can only preform these functions on a folder/file:

edit - Launches an editor and opens the document for editing.
find - Initiates a search starting from the specified directory.
open - Launches an application. If this file is not an executable file, its associated application is launched.
print - Prints the document file.
properties - Displays the objects properties.

fsX
 
Hey fsx,

tell me if I am mistaking but doesnt the security tab only show when you are logged on as Administrator or in save mode??

Greetz
 
Hi TripleB,
Thats not true...
On Windows servers by default you will always see the security tab, on Windows XP you need to remove Use simple file sharing from Windows Explorer to see it.......

fsX
 
ok good to know but still,

If I use my code in save mode(because i didnt knew your answer) it I get the file properties AND the security tab so .....
 
It works fine for me too... but I want the program to run a little smoother and show the security tab right from the start; instead of clicking the security tab...
Dont want to confuse the end user....

fsX
 
Hi Joe Mamma,

look for some p/invoke code for GetFileVersionInfo and GetFileVersionInfoSize and build your own display
How could you use this to see the NTFS security?

fsX
 
Back
Top