Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

set permission of certain directory in NT

Posted on 2000-02-24
4
Medium Priority
?
255 Views
Last Modified: 2010-04-02
how to use vc++ programming to set
the permission of certain director to administrator only. the hardisk is FAT ?
0
Comment
Question by:ttssiong
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 2557986
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
 

Author Comment

by:ttssiong
ID: 2560470
if like that, is there any alternatives
that can set a file that only can be read by certain user only ???
0
 
LVL 86

Expert Comment

by:jkr
ID: 2561116
Only on NTFS - sorry if you don't like this kind of answer, but FAT simply doesn't store security information...
0
 

Author Comment

by:ttssiong
ID: 2561191
that's ok
u had given me the good url
thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question