Solved

set permission of certain directory in NT

Posted on 2000-02-24
4
214 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 100 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now