IDiskQuotaControl interface (dskquota.h)
Controls the disk quota facilities of a single NTFS file system volume. The client can query and set volume-specific quota attributes through IDiskQuotaControl. The client can also enumerate all per-user quota entries on the volume. A client instantiates this interface by calling the CoCreateInstance function using the class identifier CLSID_DiskQuotaControl.
The IDiskQuotaControl interface inherits from the IConnectionPointContainer interface. IDiskQuotaControl also has these types of members:
The IDiskQuotaControl interface has these methods.
IDiskQuotaControl::AddUserName Adds a new quota entry on the volume for the specified user. The user is identified by domain and account name. |
IDiskQuotaControl::AddUserSid Adds a new quota entry on the volume for the specified user. The user is identified by security identifier (SID). |
IDiskQuotaControl::CreateEnumUsers Creates an enumerator object for enumerating quota users on the volume. |
IDiskQuotaControl::CreateUserBatch Creates a batching object for optimizing updates to the quota settings of multiple users simultaneously. |
IDiskQuotaControl::DeleteUser Removes a user entry from the volume quota information file. |
IDiskQuotaControl::FindUserName Locates a specific entry in the volume quota information. |
IDiskQuotaControl::FindUserSid Locates a specific user entry in the volume quota information. |
IDiskQuotaControl::GetDefaultQuotaLimit Retrieves the default quota limit for the volume. |
IDiskQuotaControl::GetDefaultQuotaLimitText Retrieves the default quota limit for the volume. The limit is expressed as a text string; for example, 10.5 MB. |
IDiskQuotaControl::GetDefaultQuotaThreshold Retrieves the default quota warning threshold for the volume. |
IDiskQuotaControl::GetDefaultQuotaThresholdText Retrieves the default warning threshold for the volume. |
IDiskQuotaControl::GetQuotaLogFlags Retrieves the flags that control the logging of user-related quota events on the volume. |
IDiskQuotaControl::GetQuotaState Retrieves a set of flags describing the state of the quota system. |
IDiskQuotaControl::GiveUserNameResolutionPriority Promotes the specified user object to the head of the queue so that it is next in line for resolution. |
IDiskQuotaControl::Initialize Initializes a new DiskQuotaControl object by opening the NTFS file system volume with the requested access rights. |
IDiskQuotaControl::InvalidateSidNameCache Invalidates the contents of the system's SID-to-name cache so subsequent requests for new user objects (IEnumDiskQuotaUsers::Next, IDiskQuotaControl::FindUserSid, and IDiskQuotaControl::FindUserName) must obtain user names from the domain controller. |
IDiskQuotaControl::SetDefaultQuotaLimit Modifies the default quota limit. |
IDiskQuotaControl::SetDefaultQuotaThreshold Modifies the default warning threshold. |
IDiskQuotaControl::SetQuotaLogFlags Controls the logging of user-related quota events on the volume. |
IDiskQuotaControl::SetQuotaState Sets the state of the quota system. |
IDiskQuotaControl::ShutdownNameResolution Translates user security identifiers (SID) to user names. |
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | dskquota.h |