set permission of certain directory in NT

how to use vc++ programming to set
the permission of certain director to administrator only. the hardisk is FAT ?
ttssiongAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
If the FS is FAT, you're lost, as it does not store any security related information...

See
http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/vcsmptakeownsample.htm

on how to do that programmatically.
0
 
ttssiongAuthor Commented:
if like that, is there any alternatives
that can set a file that only can be read by certain user only ???
0
 
jkrCommented:
Only on NTFS - sorry if you don't like this kind of answer, but FAT simply doesn't store security information...
0
 
ttssiongAuthor Commented:
that's ok
u had given me the good url
thanks
0
All Courses

From novice to tech pro — start learning today.