Skip to content

Latest commit

 

History

History
191 lines (162 loc) · 3.74 KB

nf-dskquota-idiskquotacontrol-setquotastate.md

File metadata and controls

191 lines (162 loc) · 3.74 KB
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.
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
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
IDiskQuotaControl::SetQuotaState
dskquota/IDiskQuotaControl::SetQuotaState
c++
APIRef
kbSyntax
COM
Dskquota.dll
IDiskQuotaControl.SetQuotaState

IDiskQuotaControl::SetQuotaState

-description

Sets the state of the quota system.

-parameters

-param dwState [in]

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

-returns

This method returns a file system error or one of the following values.

Return code Description
S_OK
Success.
ERROR_ACCESS_DENIED
The caller has insufficient access rights.
ERROR_NOT_READY
The DiskQuotaControl object is not initialized.
E_INVALIDARG
The dwState parameter is incorrect.
E_OUTOFMEMORY
Insufficient memory.
E_FAIL
An unexpected file system error occurred.
E_UNEXPECTED
An unexpected exception occurred.

-remarks

Not all state attributes can be modified. The enable, track, and enforce attributes can be modified.

-see-also

Disk Management Interfaces

Disk Quotas

IDiskQuotaControl