UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:dskquota.IDiskQuotaControl.SetQuotaState |
IDiskQuotaControl::SetQuotaState (dskquota.h) |
Sets the state of the quota system. |
|
fs\idiskquotacontrol_setquotastate.htm |
fs |
0bbacc3c-e212-4801-95d8-1e260123665d |
12/05/2018 |
IDiskQuotaControl interface [Files],SetQuotaState method, IDiskQuotaControl.SetQuotaState, IDiskQuotaControl::SetQuotaState, SetQuotaState, SetQuotaState method [Files], SetQuotaState method [Files],IDiskQuotaControl interface, _win32_idiskquotacontrol_setquotastate, base.idiskquotacontrol_setquotastate, dskquota/IDiskQuotaControl::SetQuotaState, fs.idiskquotacontrol_setquotastate |
dskquota.h |
Windows |
Windows XP [desktop apps only] |
Windows Server 2003 [desktop apps only] |
Dskquota.dll |
Windows |
19H1 |
|
|
|
|
|
|
Sets the state of the quota system.
State to be applied to the volume. Use the following macros to set the proper bits.
Macro | Enable | Track | Enforce |
---|---|---|---|
DISKQUOTA_SET_DISABLED | No | No | No |
DISKQUOTA_SET_TRACKED | Yes | Yes | No |
DISKQUOTA_SET_ENFORCED | Yes | Yes | Yes |
This method returns a file system error or one of the following values.
Return code | Description |
---|---|
|
Success. |
|
The caller has insufficient access rights. |
|
The DiskQuotaControl object is not initialized. |
|
The dwState parameter is incorrect. |
|
Insufficient memory. |
|
An unexpected file system error occurred. |
|
An unexpected exception occurred. |
Not all state attributes can be modified. The enable, track, and enforce attributes can be modified.