SetQuotaState

SetQuotaState是一個設定特定卷的配額管理級別的函式。

基本介紹

  • 中文名:SetQuotaState
  • 函式:DWORD dwState
  • 功能:設定特定卷的配額管理級別
函式,功能,參數,返回值,

函式

HRESULT SetQuotaState(
[in] DWORD dwState
);

功能

Sets the state of the quota system.設定特定卷的配額管理級別

參數

dwState
State to be applied to the volume. Use the following macros to set the proper bits.
MacroEnableTrackEnforce
DISKQUOTA_SET_DISABLED
No
No
No
DISKQUOTA_SET_TRACKED
Yes
Yes
No
DISKQUOTA_SET_ENFORCED
Yes
Yes
Yes
DISKQUOTA_SET_DISABLED 不在此卷上啟用配額管理。
DISKQUOTA_SET_TRACKED 跟蹤配額,但不強制執行限制值,用戶可以超過配額。
DISKQUOTA_SET_ENFORCED 在此卷上跟蹤並強制執行配額。

返回值

This method returns a file system error or one of the following values.
Return codeDescription
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.

相關詞條

熱門詞條

聯絡我們