Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get File Owner
Message
From
07/11/2003 03:32:58
 
 
To
06/11/2003 18:33:04
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00847428
Message ID:
00847523
Views:
16
Hi,

>
Is there any way to identify the owner of a file programmatically? I know this can be obtained from the Advanced Security tab on the properties dialog using Windows Explorer.
>

I think you'll need to resort to three API functions (GetFileSecurity(),GetSecurityDescriptorHolder(),LookupAccountSID()). There's an example for VB in the KB - 'HOWTO:Obtain the Owner of a File on Windows NT'

HTH,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform