Solved

Get Directory Quota

Posted on 2008-10-01
3
340 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

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

Suggested Solutions

Title # Comments Views Activity
Dynamically allocate memory 9 70
Trying to run powershell  in a batch file. How do I do this? 8 117
Issues with C++ Class 19 108
Autosar OS Multicore Share Resources confusion ? 2 108
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

726 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