Solved

Get Directory Quota

Posted on 2008-10-01
3
336 Views
Last Modified: 2013-11-20
I know there are some winapi functions that can get the capacity of the drive itself, but in situations where the user has a fixed directory quota, how exactly would I check this with MFC?
0
Comment
Question by:steenpat
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 22618279
It's not really straightfoward as one would expect - take a look at http://www.codeproject.com/KB/system/DiskQuota.aspx ("Reading quota information on an NTFS volume"), this article comes with full source code.
0
 

Author Comment

by:steenpat
ID: 22619788
I'm not sure if this is going to work or not. Say for instance they are running novell and the user wants to copy his files to a directory that is quota limited by the server. will it treat this directory as an ntfs volume? i'm kind of confused about that.
0
 
LVL 86

Expert Comment

by:jkr
ID: 22620761
That should be covered transparently by the underlying software layer which manages the network connection itself.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.

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