Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Allocation

Status
Not open for further replies.

pokes2001

Programmer
Nov 8, 2001
1
0
0
US
How do you allocate memory to a certain directory?
For example,

D:\Dir1 = 10 Meg
D:\Dir2 = 15 Meg
 
It seems that MSDN does not document this characteristic that works only on NTFS and from NT 5.0 (Win2000).

However, to read the disk quota you may use GetDiskFreeSpaceEx API.

If you cannot find documentation on this issue, try to monitor the MMC when it sets the disk quota with a program like APIMonitor to see what APIs they use then look for some information on them on the web (at least this is how I would do).

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Disk quotas under W2K are an administrative function and can be set programmatically using WMI. For more information, search online MSDN under "Disk quota". :) Hope that this helped! ;-)
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top